- Authorization problem now sends 403 error as it should

This commit is contained in:
Dave Mc Nicoll committed 2024-12-09 21:59:16 +00:00
1 parent 8e29b0513a
commit cebb213830
1 file changed
+2 -2
+2 -2
View File
@@ -29,8 +29,8 @@ return [
return function(array $errorData) { return function(array $errorData) {
return HttpFactory::createJsonResponse($errorData + [ return HttpFactory::createJsonResponse($errorData + [
'api.error' => "Authorization failed", 'api.error' => "Authorization failed",
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM), 'api.datetime' => (new \DateTime)->format(\DateTime::ISO8601),
], 401); ], 403);
}; };
}, },