add: include http status codes in json response
This commit is contained in:
parent
288dbd6d4c
commit
83019b999c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user