We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c042aa9 commit f9e477aCopy full SHA for f9e477a
src/LucaDegasperi/OAuth2Server/Filters/OAuthFilter.php
@@ -21,10 +21,10 @@ public function filter()
21
ResourceServer::isValid(Config::get('lucadegasperi/oauth2-server-laravel::oauth2.http_headers_only'));
22
} catch (\League\OAuth2\Server\Exception\InvalidAccessTokenException $e) {
23
return Response::json(array(
24
- 'status' => 403,
25
- 'error' => 'forbidden',
+ 'status' => 401,
+ 'error' => 'unauthorized',
26
'error_message' => $e->getMessage(),
27
- ), 403);
+ ), 401);
28
}
29
30
if (func_num_args() > 2) {
0 commit comments