diff --git a/src/Authenticator/AuthenticationRequiredException.php b/src/Authenticator/AuthenticationRequiredException.php index 5b88b855..74d38338 100644 --- a/src/Authenticator/AuthenticationRequiredException.php +++ b/src/Authenticator/AuthenticationRequiredException.php @@ -16,7 +16,7 @@ */ namespace Authentication\Authenticator; -use RuntimeException; +use Cake\Http\Exception\HttpException; /** * An exception for stateless authenticators when credentials are wrong/missing. @@ -24,7 +24,7 @@ * Unlike `UnauthenticatedException` this class can carry authentication challenge headers. * and is used by stateless authenticators. */ -class AuthenticationRequiredException extends RuntimeException +class AuthenticationRequiredException extends HttpException { /** * @var array