Merge pull request #242 from nerg4l/bugfix/http-status

Fix exception handler response
This commit is contained in:
László GÖRÖG 2022-06-08 23:56:18 +02:00 committed by GitHub
commit 6db9ca70c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {