Skip to content

Commit

Permalink
Handle 403 status code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gent-fella-health committed Oct 12, 2020
1 parent 93bf4a6 commit f71c1ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ function renderException($request, $e)
];
break;

case 403:
$json = [
'status' => $status,
'errors' => [[
'title' => 'Forbidden.',
'detail' => $title
]]
];
break;

default:
$json = [
'status' => $status,
Expand Down

0 comments on commit f71c1ad

Please sign in to comment.