From cebb213830136840ea8dd70565b55e1d0be04c3f Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 9 Dec 2024 21:59:16 +0000 Subject: [PATCH] - Authorization problem now sends 403 error as it should --- meta/definitions/authorize.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/definitions/authorize.php b/meta/definitions/authorize.php index 5fa621b..816f073 100644 --- a/meta/definitions/authorize.php +++ b/meta/definitions/authorize.php @@ -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); }; },