diff --git a/src/Context/CurrentContext.php b/src/Context/CurrentContext.php
index a32d16a..48e2c7e 100644
--- a/src/Context/CurrentContext.php
+++ b/src/Context/CurrentContext.php
@@ -2,12 +2,10 @@
 
 namespace Drupal\jsonapi\Context;
 
-use Drupal\jsonapi\Configuration\ResourceConfigInterface;
 use Drupal\jsonapi\Configuration\ResourceManagerInterface;
 use Symfony\Cmf\Component\Routing\RouteObjectInterface;
 use Symfony\Component\HttpFoundation\RequestStack;
 use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException;
 use Symfony\Component\Routing\Route;
 
 /**
diff --git a/src/Context/FieldResolver.php b/src/Context/FieldResolver.php
index a7b3172..e16194b 100644
--- a/src/Context/FieldResolver.php
+++ b/src/Context/FieldResolver.php
@@ -3,7 +3,7 @@
 namespace Drupal\jsonapi\Context;
 
 use Drupal\Core\Entity\EntityFieldManagerInterface;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
+use Drupal\jsonapi\Error\SerializableHttpException;
 
 /**
  * Contains FieldResolver.
@@ -65,13 +65,13 @@ class FieldResolver implements FieldResolverInterface {
     $entity_type_id = $this->currentContext->getResourceConfig()->getEntityTypeId();
     foreach ($parts as $field_name) {
       if (!$definitions = $this->fieldManager->getFieldStorageDefinitions($entity_type_id)) {
-        throw new BadRequestHttpException(sprintf('Invalid nested filtering. There is no entity type "%s".', $entity_type_id));
+        throw new SerializableHttpException(400, sprintf('Invalid nested filtering. There is no entity type "%s".', $entity_type_id));
       }
       if (
         empty($definitions[$field_name]) ||
         $definitions[$field_name]->getType() != 'entity_reference'
       ) {
-        throw new BadRequestHttpException(sprintf('Invalid nested filtering. Invalid entity reference "%s".', $field_name));
+        throw new SerializableHttpException(400, sprintf('Invalid nested filtering. Invalid entity reference "%s".', $field_name));
       }
       // Update the entity type with the referenced type.
       $entity_type_id = $definitions[$field_name]->getSetting('target_type');
diff --git a/src/Error/ErrorHandler.php b/src/Error/ErrorHandler.php
index c57fc33..9e13560 100644
--- a/src/Error/ErrorHandler.php
+++ b/src/Error/ErrorHandler.php
@@ -2,8 +2,6 @@
 
 namespace Drupal\jsonapi\Error;
 
-use Symfony\Component\HttpKernel\Exception\HttpException;
-
 class ErrorHandler extends ErrorHandlerBase {
 
   /**
@@ -16,7 +14,7 @@ class ErrorHandler extends ErrorHandlerBase {
     list($severity_msg, $severity_level) = $types[$error_level];
     // Only halt execution if the error is more severe than a warning.
     if ($severity_level < 4) {
-      throw new HttpException(500, sprintf('[%s] %s', $severity_msg, $message), NULL, [], $error_level);
+      throw new SerializableHttpException(500, sprintf('[%s] %s', $severity_msg, $message), NULL, [], $error_level);
     }
   }
 
diff --git a/src/Error/SerializableHttpException.php b/src/Error/SerializableHttpException.php
new file mode 100644
index 0000000..a4ae814
--- /dev/null
+++ b/src/Error/SerializableHttpException.php
@@ -0,0 +1,12 @@
+<?php
+
+namespace Drupal\jsonapi\Error;
+
+use Drupal\Core\DependencyInjection\DependencySerializationTrait;
+use Symfony\Component\HttpKernel\Exception\HttpException;
+
+class SerializableHttpException extends HttpException {
+
+  use DependencySerializationTrait;
+
+}
diff --git a/src/LinkManager/LinkManager.php b/src/LinkManager/LinkManager.php
index ab2353c..a269353 100644
--- a/src/LinkManager/LinkManager.php
+++ b/src/LinkManager/LinkManager.php
@@ -4,11 +4,11 @@ namespace Drupal\jsonapi\LinkManager;
 
 use Drupal\Core\Routing\UrlGeneratorInterface;
 use Drupal\jsonapi\Configuration\ResourceConfigInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\Routing\Param\OffsetPage;
 use Symfony\Cmf\Component\Routing\ChainRouterInterface;
 use Symfony\Cmf\Component\Routing\RouteObjectInterface;
 use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
 
 /**
  * Class LinkManager.
@@ -86,7 +86,7 @@ class LinkManager implements LinkManagerInterface {
       $size = OffsetPage::$maxSize;
     }
     if ($size <= 0) {
-      throw new BadRequestHttpException(sprintf('The page size needs to be a positive integer.'));
+      throw new SerializableHttpException(400, sprintf('The page size needs to be a positive integer.'));
     }
     $query = (array) $request->query->getIterator();
     $links = [];
diff --git a/src/LinkManager/LinkManagerInterface.php b/src/LinkManager/LinkManagerInterface.php
index cef7817..ec43d84 100644
--- a/src/LinkManager/LinkManagerInterface.php
+++ b/src/LinkManager/LinkManagerInterface.php
@@ -53,7 +53,7 @@ interface LinkManagerInterface {
    * @param array
    *   An associative array with extra data to build the links.
    *
-   * @throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @throws \Drupal\jsonapi\Error\SerializableHttpException
    *   When the offset and size are invalid.
    *
    * @return string
diff --git a/src/Normalizer/ContentEntityNormalizer.php b/src/Normalizer/ContentEntityNormalizer.php
index 92b6c29..b2cb899 100644
--- a/src/Normalizer/ContentEntityNormalizer.php
+++ b/src/Normalizer/ContentEntityNormalizer.php
@@ -2,19 +2,7 @@
 
 namespace Drupal\jsonapi\Normalizer;
 
-use Drupal\Core\Access\AccessibleInterface;
-use Drupal\Core\Entity\ContentEntityInterface;
-use Drupal\Core\Field\EntityReferenceFieldItemList;
-use Drupal\jsonapi\Configuration\ResourceConfigInterface;
-use Drupal\jsonapi\Context\CurrentContextInterface;
-use Drupal\jsonapi\LinkManager\LinkManagerInterface;
-use Drupal\jsonapi\RelationshipInterface;
-use Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException;
-use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
-
 /**
  * Converts the Drupal content entity object structure to a HAL array structure.
  */
-class ContentEntityNormalizer extends EntityNormalizer {
-
-}
+class ContentEntityNormalizer extends EntityNormalizer {}
diff --git a/src/Normalizer/EntityNormalizer.php b/src/Normalizer/EntityNormalizer.php
index efb4d7a..961f9bf 100644
--- a/src/Normalizer/EntityNormalizer.php
+++ b/src/Normalizer/EntityNormalizer.php
@@ -8,10 +8,10 @@ use Drupal\Core\Entity\ContentEntityInterface;
 use Drupal\Core\Field\EntityReferenceFieldItemList;
 use Drupal\jsonapi\Configuration\ResourceConfigInterface;
 use Drupal\jsonapi\Context\CurrentContextInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\LinkManager\LinkManagerInterface;
 use Drupal\jsonapi\Normalizer\Value\NullFieldNormalizerValue;
 use Drupal\jsonapi\RelationshipInterface;
-use Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException;
 use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
 
 /**
@@ -129,7 +129,7 @@ class EntityNormalizer extends NormalizerBase implements DenormalizerInterface,
    */
   public function denormalize($data, $class, $format = NULL, array $context = array()) {
     if (empty($context['resource_config']) || !$context['resource_config'] instanceof ResourceConfigInterface) {
-      throw new PreconditionFailedHttpException('Missing context during denormalization.');
+      throw new SerializableHttpException(412, 'Missing context during denormalization.');
     }
     /* @var \Drupal\jsonapi\Configuration\ResourceConfigInterface $resource_config */
     $resource_config = $context['resource_config'];
diff --git a/src/Normalizer/EntityReferenceFieldNormalizer.php b/src/Normalizer/EntityReferenceFieldNormalizer.php
index 8604332..855ac04 100644
--- a/src/Normalizer/EntityReferenceFieldNormalizer.php
+++ b/src/Normalizer/EntityReferenceFieldNormalizer.php
@@ -4,11 +4,11 @@ namespace Drupal\jsonapi\Normalizer;
 
 use Drupal\Core\Entity\EntityFieldManagerInterface;
 use Drupal\Core\Field\EntityReferenceFieldItemListInterface;
-use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Field\FieldTypePluginManagerInterface;
 use Drupal\Core\Field\TypedData\FieldItemDataDefinition;
 use Drupal\jsonapi\Configuration\ResourceManagerInterface;
 use Drupal\jsonapi\EntityCollection;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\LinkManager\LinkManagerInterface;
 use Drupal\jsonapi\Relationship;
 use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
@@ -95,7 +95,7 @@ class EntityReferenceFieldNormalizer extends FieldNormalizer implements Denormal
       $context['resource_config']->getBundleId()
     );
     if (empty($context['related']) || empty($field_definitions[$context['related']])) {
-      throw new BadRequestHttpException('Invalid or missing related field.');
+      throw new SerializableHttpException(400, 'Invalid or missing related field.');
     }
     /* @var \Drupal\field\Entity\FieldConfig $field_definition */
     $field_definition = $field_definitions[$context['related']];
@@ -110,7 +110,7 @@ class EntityReferenceFieldNormalizer extends FieldNormalizer implements Denormal
       // Make sure that the provided type is compatible with the targeted
       // resource.
       if (!in_array($value['type'], $target_resources)) {
-        throw new BadRequestHttpException(sprintf(
+        throw new SerializableHttpException(400, sprintf(
           'The provided type (%s) does not mach the destination resource types (%s).',
           $value['type'],
           implode(', ', $target_resources)
@@ -136,14 +136,14 @@ class EntityReferenceFieldNormalizer extends FieldNormalizer implements Denormal
   protected function massageRelationshipInput($data, $is_multiple) {
     if ($is_multiple) {
       if (!is_array($data['data'])) {
-        throw new BadRequestHttpException('Invalid body payload for the relationship.');
+        throw new SerializableHttpException(400, 'Invalid body payload for the relationship.');
       }
       // Leave the invalid elements.
       $invalid_elements = array_filter($data['data'], function ($element) {
         return empty($element['type']) || empty($element['id']);
       });
       if ($invalid_elements) {
-        throw new BadRequestHttpException('Invalid body payload for the relationship.');
+        throw new SerializableHttpException(400, 'Invalid body payload for the relationship.');
       }
     }
     else {
@@ -152,7 +152,7 @@ class EntityReferenceFieldNormalizer extends FieldNormalizer implements Denormal
         return ['data' => []];
       }
       if (empty($data['data']['type']) || empty($data['data']['id'])) {
-        throw new BadRequestHttpException('Invalid body payload for the relationship.');
+        throw new SerializableHttpException(400, 'Invalid body payload for the relationship.');
       }
       $data['data'] = [$data['data']];
     }
diff --git a/src/Normalizer/HttpExceptionNormalizer.php b/src/Normalizer/HttpExceptionNormalizer.php
index 268faa9..4fb9169 100644
--- a/src/Normalizer/HttpExceptionNormalizer.php
+++ b/src/Normalizer/HttpExceptionNormalizer.php
@@ -5,7 +5,6 @@ namespace Drupal\jsonapi\Normalizer;
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
 use Drupal\Core\Session\AccountProxyInterface;
 use Drupal\jsonapi\Normalizer\Value\FieldItemNormalizerValue;
-use Drupal\jsonapi\Normalizer\Value\FieldNormalizerValue;
 use Drupal\jsonapi\Normalizer\Value\HttpExceptionNormalizerValue;
 use Drupal\serialization\Normalizer\NormalizerBase as SerializationNormalizerBase;
 use Symfony\Component\HttpFoundation\Response;
@@ -13,7 +12,6 @@ use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
 
 class HttpExceptionNormalizer extends SerializationNormalizerBase {
 
-
   /**
    * The interface or class that this Normalizer supports.
    *
@@ -42,7 +40,7 @@ class HttpExceptionNormalizer extends SerializationNormalizerBase {
    * {@inheritdoc}
    */
   public function normalize($object, $format = null, array $context = []) {
-    /** @var \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface */
+    /** @var $object \Symfony\Component\HttpKernel\Exception\HttpException */
     $error = [];
     $status_code = $object->getStatusCode();
     if (!empty(Response::$statusTexts[$status_code])) {
diff --git a/src/Query/QueryBuilder.php b/src/Query/QueryBuilder.php
index 6f99804..09254e1 100644
--- a/src/Query/QueryBuilder.php
+++ b/src/Query/QueryBuilder.php
@@ -4,13 +4,13 @@ namespace Drupal\jsonapi\Query;
 
 use Drupal\Core\Entity\EntityTypeInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\Routing\Param\OffsetPage;
 use Drupal\jsonapi\Routing\Param\Filter;
 use Drupal\jsonapi\Routing\Param\JsonApiParamInterface;
 use Drupal\jsonapi\Context\CurrentContextInterface;
 use Drupal\jsonapi\Context\FieldResolverInterface;
 use Drupal\jsonapi\Routing\Param\Sort;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
 
 /**
  * Class QueryBuilder.
@@ -166,7 +166,8 @@ class QueryBuilder implements QueryBuilderInterface {
             break;
 
           default:
-            throw new BadRequestHttpException(
+            throw new SerializableHttpException(
+              400,
               sprintf('Invalid syntax in the filter parameter: %s.', $filter_index)
             );
         };
diff --git a/src/RequestHandler.php b/src/RequestHandler.php
index 1c921f8..0240e92 100644
--- a/src/RequestHandler.php
+++ b/src/RequestHandler.php
@@ -6,14 +6,13 @@ use Drupal\Core\Render\RenderContext;
 use Drupal\Core\Routing\RouteMatchInterface;
 use Drupal\jsonapi\Context\CurrentContextInterface;
 use Drupal\jsonapi\Error\ErrorHandlerInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\Resource\EntityResource;
 use Drupal\rest\RequestHandler as RestRequestHandler;
 use Drupal\rest\ResourceResponse;
 use Drupal\rest\ResourceResponseInterface;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Exception\HttpException;
-use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
 use Symfony\Component\Routing\Route;
 use Symfony\Component\Serializer\Exception\UnexpectedValueException;
 use Symfony\Component\Serializer\SerializerInterface;
@@ -163,7 +162,7 @@ class RequestHandler extends RestRequestHandler {
       ]);
     }
     catch (UnexpectedValueException $e) {
-      throw new HttpException(
+      throw new SerializableHttpException(
         422,
         sprintf('There was an error un-serializing the data. Message: %s.', $e->getMessage()),
         $e
diff --git a/src/Resource/EntityResource.php b/src/Resource/EntityResource.php
index bc1e057..56ffa8b 100644
--- a/src/Resource/EntityResource.php
+++ b/src/Resource/EntityResource.php
@@ -17,6 +17,7 @@ use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
 use Drupal\jsonapi\Configuration\ResourceConfigInterface;
 use Drupal\jsonapi\EntityCollection;
 use Drupal\jsonapi\EntityCollectionInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Drupal\jsonapi\Query\QueryBuilderInterface;
 use Drupal\jsonapi\Context\CurrentContextInterface;
 use Drupal\jsonapi\Routing\Param\JsonApiParamBase;
@@ -24,11 +25,6 @@ use Drupal\jsonapi\Routing\Param\OffsetPage;
 use Drupal\rest\ResourceResponse;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
-use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
-use Symfony\Component\HttpKernel\Exception\HttpException;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 
 /**
  * Class EntityResource.
@@ -110,7 +106,7 @@ class EntityResource implements EntityResourceInterface {
   public function getIndividual(EntityInterface $entity, Request $request, $response_code = 200) {
     $entity_access = $entity->access('view', NULL, TRUE);
     if (!$entity_access->isAllowed()) {
-      throw new AccessDeniedHttpException('The current user is not allowed to GET the selected resource.');
+      throw new SerializableHttpException(403, 'The current user is not allowed to GET the selected resource.');
     }
     $response = $this->buildWrappedResponse($entity, $response_code);
     return $response;
@@ -122,7 +118,7 @@ class EntityResource implements EntityResourceInterface {
    * @param \Drupal\Core\Entity\EntityInterface $entity
    *   The entity object.
    *
-   * @throws \Symfony\Component\HttpKernel\Exception\HttpException
+   * @throws \Drupal\jsonapi\Error\SerializableHttpException
    *   If validation errors are found.
    */
   protected function validate(EntityInterface $entity) {
@@ -145,7 +141,7 @@ class EntityResource implements EntityResourceInterface {
       // 422 Unprocessable Entity code from RFC 4918. That way clients can
       // distinguish between general syntax errors in bad serializations (code
       // 400) and semantic errors in well-formed requests (code 422).
-      throw new HttpException(422, $message);
+      throw new SerializableHttpException(422, $message);
     }
   }
 
@@ -156,7 +152,7 @@ class EntityResource implements EntityResourceInterface {
     $entity_access = $entity->access('create', NULL, TRUE);
 
     if (!$entity_access->isAllowed()) {
-      throw new AccessDeniedHttpException('The current user is not allowed to POST the selected resource.');
+      throw new SerializableHttpException(403, 'The current user is not allowed to POST the selected resource.');
     }
     $this->validate($entity);
     $entity->save();
@@ -169,13 +165,13 @@ class EntityResource implements EntityResourceInterface {
   public function patchIndividual(EntityInterface $entity, EntityInterface $parsed_entity, Request $request) {
     $entity_access = $entity->access('update', NULL, TRUE);
     if (!$entity_access->isAllowed()) {
-      throw new AccessDeniedHttpException('The current user is not allowed to GET the selected resource.');
+      throw new SerializableHttpException(403, 'The current user is not allowed to GET the selected resource.');
     }
     $body = Json::decode($request->getContent());
     $data = $body['data'];
     $id_key = $this->resourceConfig->getIdKey();
     if (!method_exists($entity, $id_key) || $data['id'] != $entity->{$id_key}()) {
-      throw new BadRequestHttpException(sprintf(
+      throw new SerializableHttpException(400, sprintf(
         'The selected entity (%s) does not match the ID in the payload (%s).',
         $entity->{$id_key}(),
         $data['id']
@@ -199,7 +195,7 @@ class EntityResource implements EntityResourceInterface {
   public function deleteIndividual(EntityInterface $entity, Request $request) {
     $entity_access = $entity->access('delete', NULL, TRUE);
     if (!$entity_access->isAllowed()) {
-      throw new AccessDeniedHttpException('The current user is not allowed to DELETE the selected resource.');
+      throw new SerializableHttpException(403, 'The current user is not allowed to DELETE the selected resource.');
     }
     $entity->delete();
     return new ResourceResponse(NULL, 204);
@@ -249,7 +245,7 @@ class EntityResource implements EntityResourceInterface {
   public function getRelated(EntityInterface $entity, $related_field, Request $request) {
     /* @var $field_list \Drupal\Core\Field\FieldItemListInterface */
     if (!($field_list = $entity->get($related_field)) || !$this->isRelationshipField($field_list)) {
-      throw new NotFoundHttpException(sprintf('The relationship %s is not present in this resource.', $related_field));
+      throw new SerializableHttpException(404, sprintf('The relationship %s is not present in this resource.', $related_field));
     }
     $data_definition = $field_list->getDataDefinition();
     // TODO: Also check for access in the related.
@@ -272,7 +268,7 @@ class EntityResource implements EntityResourceInterface {
    */
   public function getRelationship(EntityInterface $entity, $related_field, Request $request, $response_code = 200) {
     if (!($field_list = $entity->get($related_field)) || !$this->isRelationshipField($field_list)) {
-      throw new NotFoundHttpException(sprintf('The relationship %s is not present in this resource.', $related_field));
+      throw new SerializableHttpException(404, sprintf('The relationship %s is not present in this resource.', $related_field));
     }
     $response = $this->buildWrappedResponse($field_list, $response_code);
     return $response;
@@ -297,12 +293,12 @@ class EntityResource implements EntityResourceInterface {
       ->getFieldStorageDefinition()
       ->isMultiple();
     if (!$is_multiple) {
-      throw new ConflictHttpException(sprintf('You can only POST to to-many relationships. %s is a to-one relationship.', $related_field));
+      throw new SerializableHttpException(409, sprintf('You can only POST to to-many relationships. %s is a to-one relationship.', $related_field));
     }
 
     $field_access = $field_list->access('update', NULL, TRUE);
     if (!$field_access->isAllowed()) {
-      throw new AccessDeniedHttpException(sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_list->getName()));
+      throw new SerializableHttpException(403, sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_list->getName()));
     }
     // Time to save the relationship.
     foreach ($parsed_field_list as $field_item) {
@@ -349,7 +345,7 @@ class EntityResource implements EntityResourceInterface {
    */
   protected function doPatchIndividualRelationship(EntityInterface $entity, EntityReferenceFieldItemListInterface $parsed_field_list) {
     if ($parsed_field_list->count() > 1) {
-      throw new BadRequestHttpException(sprintf('Provide a single relationship so to-one relationship fields (%s).', $parsed_field_list->getName()));
+      throw new SerializableHttpException(400, sprintf('Provide a single relationship so to-one relationship fields (%s).', $parsed_field_list->getName()));
     }
     $this->doPatchMultipleRelationship($entity, $parsed_field_list);
   }
@@ -367,7 +363,7 @@ class EntityResource implements EntityResourceInterface {
     $field_name = $parsed_field_list->getName();
     $field_access = $parsed_field_list->access('update', NULL, TRUE);
     if (!$field_access->isAllowed()) {
-      throw new AccessDeniedHttpException(sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_name));
+      throw new SerializableHttpException(403, sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_name));
     }
     $entity->{$field_name} = $parsed_field_list;
   }
@@ -387,7 +383,7 @@ class EntityResource implements EntityResourceInterface {
     $field_name = $parsed_field_list->getName();
     $field_access = $parsed_field_list->access('delete', NULL, TRUE);
     if (!$field_access->isAllowed()) {
-      throw new AccessDeniedHttpException(sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_name));
+      throw new SerializableHttpException(403, sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_name));
     }
     /* @var \Drupal\Core\Field\EntityReferenceFieldItemListInterface $field_list */
     $field_list = $entity->{$related_field};
@@ -502,10 +498,10 @@ class EntityResource implements EntityResourceInterface {
     /* @var \Drupal\Core\Field\EntityReferenceFieldItemListInterface $parsed_field_list */
     $entity_access = $entity->access('update', NULL, TRUE);
     if (!$entity_access->isAllowed()) {
-      throw new AccessDeniedHttpException('The current user is not allowed to POST the selected resource.');
+      throw new SerializableHttpException(403, 'The current user is not allowed to POST the selected resource.');
     }
     if (!($field_list = $entity->get($related_field)) || !$this->isRelationshipField($field_list)) {
-      throw new NotFoundHttpException(sprintf('The relationship %s is not present in this resource.', $related_field));
+      throw new SerializableHttpException(404, sprintf('The relationship %s is not present in this resource.', $related_field));
     }
   }
 
@@ -524,11 +520,11 @@ class EntityResource implements EntityResourceInterface {
     if ($origin instanceof ContentEntityInterface && $destination instanceof ContentEntityInterface) {
       // First scenario: both are content entities.
       if (!$field_list = $destination->get($field_name)) {
-        throw new BadRequestHttpException(sprintf('The provided field (%s) does not exist in the entity with ID %d.', $field_name, $destination->id()));
+        throw new SerializableHttpException(400, sprintf('The provided field (%s) does not exist in the entity with ID %d.', $field_name, $destination->id()));
       }
       $field_access = $field_list->access('update', NULL, TRUE);
       if (!$field_access->isAllowed()) {
-        throw new AccessDeniedHttpException(sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_list->getName()));
+        throw new SerializableHttpException(403, sprintf('The current user is not allowed to PATCH the selected field (%s).', $field_list->getName()));
       }
       $destination->{$field_name} = $origin->get($field_name);
     }
@@ -537,7 +533,7 @@ class EntityResource implements EntityResourceInterface {
       $destination->set($field_name, $origin->get($field_name));
     }
     else {
-      throw new BadRequestHttpException('The serialized entity and the destination entity are of different types.');
+      throw new SerializableHttpException(400, 'The serialized entity and the destination entity are of different types.');
     }
   }
 
@@ -581,7 +577,7 @@ class EntityResource implements EntityResourceInterface {
       ];
       if ($entity instanceof AccessibleInterface && !$access->isAllowed()) {
         // Pass an exception to the list of things to normalize.
-        $collection_data[$entity->id()]['entity'] = new HttpException(403, sprintf(
+        $collection_data[$entity->id()]['entity'] = new SerializableHttpException(403, sprintf(
           'Access checks failed for entity %s:%s.',
           $entity->getEntityTypeId(),
           $entity->id()
diff --git a/src/Routing/Param/Filter.php b/src/Routing/Param/Filter.php
index 258b5a7..8e37f10 100644
--- a/src/Routing/Param/Filter.php
+++ b/src/Routing/Param/Filter.php
@@ -1,8 +1,7 @@
 <?php
 
 namespace Drupal\jsonapi\Routing\Param;
-
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
+use Drupal\jsonapi\Error\SerializableHttpException;
 
 /**
  * Class Filter.
@@ -64,7 +63,7 @@ class Filter extends JsonApiParamBase {
   protected function expand() {
     // We should always get an array for the filter.
     if (!is_array($this->original)) {
-      throw new BadRequestHttpException('Incorrect value passed to the filter parameter.');
+      throw new SerializableHttpException(400, 'Incorrect value passed to the filter parameter.');
     }
 
     $expanded = [];
diff --git a/src/Routing/Param/OffsetPage.php b/src/Routing/Param/OffsetPage.php
index 22a39f2..4ae43c4 100644
--- a/src/Routing/Param/OffsetPage.php
+++ b/src/Routing/Param/OffsetPage.php
@@ -1,8 +1,7 @@
 <?php
 
 namespace Drupal\jsonapi\Routing\Param;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
-
+use Drupal\jsonapi\Error\SerializableHttpException;
 
 /**
  * Class Page.
@@ -44,7 +43,7 @@ class OffsetPage extends JsonApiParamBase {
    */
   protected function expand() {
     if (!is_array($this->original)) {
-      throw new BadRequestHttpException('The page parameter needs to be an array.');
+      throw new SerializableHttpException(400, 'The page parameter needs to be an array.');
     }
     $output = $this->original + ['size' => static::$maxSize];
     $output['size'] = $output['size'] > static::$maxSize ?
diff --git a/src/Routing/Param/Sort.php b/src/Routing/Param/Sort.php
index 4509475..a644d68 100644
--- a/src/Routing/Param/Sort.php
+++ b/src/Routing/Param/Sort.php
@@ -1,8 +1,7 @@
 <?php
 
 namespace Drupal\jsonapi\Routing\Param;
-
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
+use Drupal\jsonapi\Error\SerializableHttpException;
 
 /**
  * Class Sort.
@@ -50,7 +49,7 @@ class Sort extends JsonApiParamBase {
     $sort = $this->original;
 
     if (empty($sort)) {
-      throw new BadRequestHttpException('You need to provide a value for the sort parameter.');
+      throw new SerializableHttpException(400, 'You need to provide a value for the sort parameter.');
     }
 
     // Expand a JSON API compliant sort into a more expressive sort parameter.
@@ -111,7 +110,7 @@ class Sort extends JsonApiParamBase {
     ];
 
     if (!isset($sort_item[static::FIELD_KEY])) {
-      throw new BadRequestHttpException('You need to provide a field name for the sort parameter.');
+      throw new SerializableHttpException(400, 'You need to provide a field name for the sort parameter.');
     }
 
     $expected_keys = [
@@ -124,7 +123,7 @@ class Sort extends JsonApiParamBase {
 
     // Verify correct sort keys.
     if (count(array_diff($expected_keys, array_keys($expanded))) > 0) {
-      throw new BadRequestHttpException('You have provided an invalid set of sort keys.');
+      throw new SerializableHttpException(400, 'You have provided an invalid set of sort keys.');
     }
 
     return $expanded;
diff --git a/src/Routing/RouteEnhancer.php b/src/Routing/RouteEnhancer.php
index 7a55bca..ca6b5c5 100644
--- a/src/Routing/RouteEnhancer.php
+++ b/src/Routing/RouteEnhancer.php
@@ -3,9 +3,9 @@
 namespace Drupal\jsonapi\Routing;
 
 use Drupal\Core\Routing\Enhancer\RouteEnhancerInterface;
+use Drupal\jsonapi\Error\SerializableHttpException;
 use Symfony\Cmf\Component\Routing\RouteObjectInterface;
 use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Exception\HttpException;
 use Symfony\Component\Routing\Route;
 
 /**
@@ -37,7 +37,7 @@ class RouteEnhancer implements RouteEnhancerInterface {
       // If the bundle in the loaded entity does not match the bundle in the
       // route configuration (that comes from the resource_config), then throw
       // an exception.
-      throw new HttpException(404, sprintf('The loaded entity bundle (%s) does not match the configured resource (%s).', $retrieved_bundle, $configured_bundle));
+      throw new SerializableHttpException(404, sprintf('The loaded entity bundle (%s) does not match the configured resource (%s).', $retrieved_bundle, $configured_bundle));
     }
     return $defaults;
   }
diff --git a/tests/src/Kernel/Resource/EntityResourceTest.php b/tests/src/Kernel/Resource/EntityResourceTest.php
index 4558bb4..4984743 100644
--- a/tests/src/Kernel/Resource/EntityResourceTest.php
+++ b/tests/src/Kernel/Resource/EntityResourceTest.php
@@ -141,7 +141,7 @@ class EntityResourceTest extends JsonapiKernelTestBase {
 
   /**
    * @covers ::getIndividual
-   * @expectedException \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
   public function testGetIndividualDenied() {
     $role = Role::load(RoleInterface::ANONYMOUS_ID);
diff --git a/tests/src/Unit/Context/FieldResolverTest.php b/tests/src/Unit/Context/FieldResolverTest.php
index 583736d..7fe5b46 100644
--- a/tests/src/Unit/Context/FieldResolverTest.php
+++ b/tests/src/Unit/Context/FieldResolverTest.php
@@ -78,7 +78,7 @@ class FieldResolverTest extends UnitTestCase {
    *
    * @covers ::resolveInternal
    *
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
   public function testResolveInternalError() {
     $field_manager = $this->prophesize(EntityFieldManagerInterface::class);
@@ -104,7 +104,7 @@ class FieldResolverTest extends UnitTestCase {
    *
    * @covers ::resolveInternal
    *
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
   public function testResolveInternalError2() {
     $field_manager = $this->prophesize(EntityFieldManagerInterface::class);
diff --git a/tests/src/Unit/LinkManager/LinkManagerTest.php b/tests/src/Unit/LinkManager/LinkManagerTest.php
index a4afe10..be9c5d7 100644
--- a/tests/src/Unit/LinkManager/LinkManagerTest.php
+++ b/tests/src/Unit/LinkManager/LinkManagerTest.php
@@ -125,7 +125,7 @@ class LinkManagerTest extends UnitTestCase {
    * Test errors.
    *
    * @covers ::getPagerLinks
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    * @dataProvider getPagerLinksErrorProvider
    */
   public function testGetPagerLinksError($offset, $size, $total, array $pages) {
diff --git a/tests/src/Unit/Normalizer/EntityReferenceFieldNormalizerTest.php b/tests/src/Unit/Normalizer/EntityReferenceFieldNormalizerTest.php
index 3679ae4..d87cefd 100644
--- a/tests/src/Unit/Normalizer/EntityReferenceFieldNormalizerTest.php
+++ b/tests/src/Unit/Normalizer/EntityReferenceFieldNormalizerTest.php
@@ -129,7 +129,7 @@ class EntityReferenceFieldNormalizerTest extends UnitTestCase {
 
   /**
    * @covers ::denormalize
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    * @dataProvider denormalizeInvalidResourceProvider
    */
   public function testDenormalizeInvalidResource($data, $field_name) {
diff --git a/tests/src/Unit/Routing/Param/FilterTest.php b/tests/src/Unit/Routing/Param/FilterTest.php
index f639326..ed37bcb 100644
--- a/tests/src/Unit/Routing/Param/FilterTest.php
+++ b/tests/src/Unit/Routing/Param/FilterTest.php
@@ -94,7 +94,7 @@ class FilterTest extends UnitTestCase {
 
   /**
    * @covers ::get
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
   public function testGetFail() {
     $pager = new Filter(
diff --git a/tests/src/Unit/Routing/Param/OffsetPageTest.php b/tests/src/Unit/Routing/Param/OffsetPageTest.php
index 2584fee..3db009a 100644
--- a/tests/src/Unit/Routing/Param/OffsetPageTest.php
+++ b/tests/src/Unit/Routing/Param/OffsetPageTest.php
@@ -40,7 +40,7 @@ class OffsetPageTest extends UnitTestCase {
 
   /**
    * @covers ::get
-   * @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
   public function testGetFail() {
     $pager = new OffsetPage('lorem');
diff --git a/tests/src/Unit/Routing/Param/SortTest.php b/tests/src/Unit/Routing/Param/SortTest.php
index 773d8da..61a1f13 100644
--- a/tests/src/Unit/Routing/Param/SortTest.php
+++ b/tests/src/Unit/Routing/Param/SortTest.php
@@ -56,20 +56,22 @@ class SortTest extends UnitTestCase {
 
   /**
    * @covers ::get
+   * @dataProvider getFailProvider
+   * @expectedException \Drupal\jsonapi\Error\SerializableHttpException
    */
-  public function testGetFail() {
-    $sort = new Sort([['lorem']]);
-    $this->setExpectedException(BadRequestHttpException::class);
+  public function testGetFail($input) {
+    $sort = new Sort($input);
     $sort->get();
   }
 
   /**
-   * @covers ::get
+   * Data provider for testGetFail.
    */
-  public function testGetEmpty() {
-    $sort = new Sort('');
-    $this->setExpectedException(BadRequestHttpException::class);
-    $sort->get();
+  public function getFailProvider() {
+    return [
+      [[['lorem']]],
+      [''],
+    ];
   }
 
 }
