diff --git a/src/Authentication/Provider/AccessTokenProvider.php b/src/Authentication/Provider/AccessTokenProvider.php
index 55a2ba0..36e0da8 100755
--- a/src/Authentication/Provider/AccessTokenProvider.php
+++ b/src/Authentication/Provider/AccessTokenProvider.php
@@ -114,7 +114,7 @@ class AccessTokenProvider implements AuthenticationProviderInterface {
     $path = $request->getPathInfo();
 
     if (empty($publicToken)) {
-      throw new AccessDeniedException($this->translator->translate('Empty X-AUTH-TOKEN'));
+      throw new AccessDeniedException($this->translator->translate('Empty token'));
     }
 
     if ($this->configFactory->get('rest_api_access_token.config')
@@ -128,7 +128,7 @@ class AccessTokenProvider implements AuthenticationProviderInterface {
       $token = $this->tokenRepository->getByPublicToken($publicToken);
     }
     catch (TokenNotFoundException $exception) {
-      throw new AccessDeniedException($this->translator->translate('Invalid X-AUTH-TOKEN'));
+      throw new AccessDeniedException($this->translator->translate('Invalid token'));
     }
 
     $user = $this->userStorage->load($token->getUserId());
diff --git a/src/Exception/AccessDeniedException.php b/src/Exception/AccessDeniedException.php
index 0c733a9..eb6c0ed 100755
--- a/src/Exception/AccessDeniedException.php
+++ b/src/Exception/AccessDeniedException.php
@@ -2,11 +2,11 @@
 
 namespace Drupal\rest_api_access_token\Exception;
 
+use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
+
 /**
  * Class AccessDeniedException.
- *
- * @package Drupal\rest_api_access_token\Exception
  */
-class AccessDeniedException extends \Exception {
+class AccessDeniedException extends AuthenticationException {
 
 }
diff --git a/src/Exception/AuthenticationException.php b/src/Exception/AuthenticationException.php
index c9cea97..d456dca 100755
--- a/src/Exception/AuthenticationException.php
+++ b/src/Exception/AuthenticationException.php
@@ -2,11 +2,11 @@
 
 namespace Drupal\rest_api_access_token\Exception;
 
+use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
+
 /**
  * Class AuthenticationException.
- *
- * @package Drupal\rest_api_access_token\Exception
  */
-class AuthenticationException extends \Exception {
+class AuthenticationException extends BadRequestHttpException {
 
 }
