diff --git a/src/Exception/OAuthServerException.php b/src/Exception/OAuthServerException.php index f5630c63..701f1335 100644 --- a/src/Exception/OAuthServerException.php +++ b/src/Exception/OAuthServerException.php @@ -191,6 +191,18 @@ class OAuthServerException extends \Exception return new static('The refresh token is invalid.', 'invalid_request', 400, $hint); } + /** + * Access denied + * + * @param null|string $hint + * + * @return static + */ + public static function accessDenied($hint = null) + { + return new static('The resource owner or authorization server denied the request.', 401, $hint); + } + /** * @return string */