Skip to content

Commit

Permalink
Merge e73ba81 into af143cb
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Sep 16, 2021
2 parents af143cb + e73ba81 commit a154d4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ protected function process(): ?BaseResponse

return null;
} catch (ResponseException $responseException) {
$this->getHttpResponse()->setCode($responseException->getCode());
if ($responseException->getCode() >= 100 && $responseException->getCode() < 600) {
$this->getHttpResponse()->setCode($responseException->getCode());
}


$result = $responseException instanceof ValidationException
? new ValidationErrorResponse($responseException)
Expand Down

0 comments on commit a154d4e

Please sign in to comment.