Skip to content

Commit

Permalink
format error response as json
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorieser committed Jan 30, 2023
1 parent 26a0b86 commit d714abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/VitalsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VitalsController
public function __invoke()
{
if (!$this->checkAccess()) {
return new JsonResponse('Wrong access key.', '401');
return new JsonResponse(['error'=>'Wrong access key.'], '401');
}

if (!$this->shouldServeFromCache()) {
Expand Down

0 comments on commit d714abf

Please sign in to comment.