Skip to content

Commit

Permalink
whitelist error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Feb 3, 2024
1 parent 1f6a196 commit f2d31d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public function render(
return $response;
}


if (!in_array($status, [401, 402, 403, 404, 405, 500, 503])) {
return $response;
}

return inertia('Auth/Error', [
'title' => "Error $status",
'description' => $response->exception?->getMessage(),
Expand Down

0 comments on commit f2d31d3

Please sign in to comment.