From 83019b999ca66bdb7f7aa465ad273b06dcf3f95a Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Mon, 23 Jan 2023 01:08:14 +0100 Subject: [PATCH] add: include http status codes in json response --- Router/Response.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Router/Response.php b/Router/Response.php index 69065d7..8dedd7e 100644 --- a/Router/Response.php +++ b/Router/Response.php @@ -31,6 +31,7 @@ class Response http_response_code($status); } header('Content-Type: application/json; charset=utf-8'); + $data["status"] = http_response_code(); echo json_encode($data); }