Skip to content

Commit

Permalink
Merge pull request #1755 from specialtactics/bugfix/cater-to-5xx-exce…
Browse files Browse the repository at this point in the history
…ptions

Cater for other 5xx exceptions
  • Loading branch information
specialtactics authored Oct 9, 2020
2 parents 85866b7 + eda072d commit 7355bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function getStatusCode(Throwable $exception)
}

// Be extra defensive
if ($statusCode < 100 || $statusCode > 500) {
if ($statusCode < 100 || $statusCode > 599) {
$statusCode = 500;
}

Expand Down

0 comments on commit 7355bb6

Please sign in to comment.