- Authorization problem now sends 403 error as it should

This commit is contained in:
Dave Mc Nicoll 2024-12-09 21:59:16 +00:00
parent 8e29b0513a
commit cebb213830

@ -29,8 +29,8 @@ return [
return function(array $errorData) {
return HttpFactory::createJsonResponse($errorData + [
'api.error' => "Authorization failed",
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM),
], 401);
'api.datetime' => (new \DateTime)->format(\DateTime::ISO8601),
], 403);
};
},