Error code change

This commit is contained in:
2024-01-08 21:25:02 -03:00
parent 6393a1fced
commit 72a2ffe924

View File

@ -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;
}