- Authorization problem now sends 403 error as it should
This commit is contained in:
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);
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user