mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge pull request #242 from nerg4l/bugfix/http-status
Fix exception handler response
This commit is contained in:
commit
6db9ca70c1
@ -161,11 +161,11 @@ class Handler extends ExceptionHandler
|
||||
if ($e instanceof HttpException) {
|
||||
return response()
|
||||
->json([
|
||||
'status' => 400,
|
||||
'status' => $e->getStatusCode(),
|
||||
'type' => 'HttpException',
|
||||
'message' => 'Invalid or incomplete request. Please double check the request documentation',
|
||||
'message' => Response::$statusTexts[$e->getStatusCode()],
|
||||
'error' => null
|
||||
], 400);
|
||||
], $e->getStatusCode());
|
||||
}
|
||||
|
||||
if ($e instanceof TimeoutException) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user