diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.php b/backend.php index f603fbf..c7d7ebc 100644 --- a/backend.php +++ b/backend.php @@ -184,7 +184,8 @@ break; default: - print json_encode(["error" => "UNKNOWN_METHOD"]); + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); + echo "Method not found."; } |