about summary refs log tree commit diff stats
path: root/classes/Handler/GetinfoHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Handler/GetinfoHandler.php')
-rw-r--r--classes/Handler/GetinfoHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Handler/GetinfoHandler.php b/classes/Handler/GetinfoHandler.php
index 0c51cf5..8914040 100644
--- a/classes/Handler/GetinfoHandler.php
+++ b/classes/Handler/GetinfoHandler.php
@@ -33,6 +33,6 @@ class GetinfoHandler implements RequestHandlerInterface, AuthRequired
 
 		return (new Response())
 			->withStatus(404)
-			->withBody("Not found.");
+			->withBody(json_encode(["error" => "Not found."]));
 	}
 }