Error code change
This commit is contained in:
@ -22,7 +22,7 @@ class Errors
|
||||
} catch (Error $error) {
|
||||
$this->logger->error($error);
|
||||
}
|
||||
$response = $this->responseFactory->createResponse(404);
|
||||
$response = $this->responseFactory->createResponse(600, 'Internal Server Error');
|
||||
if (str_contains($request->getUri()->getPath(), '/api')) {
|
||||
return $response;
|
||||
}
|
||||
|
Reference in New Issue
Block a user