diff --git a/jsonapi.services.yml b/jsonapi.services.yml
index e92c3f7..eeead38 100644
--- a/jsonapi.services.yml
+++ b/jsonapi.services.yml
@@ -88,3 +88,8 @@ services:
   plugin.manager.resource.processor:
     class: Drupal\jsonapi\Plugin\JsonApiResourceManager
     parent: default_plugin_manager
+  jsonapi.exception_subscriber:
+    class: Drupal\jsonapi\EventSubscriber\DefaultExceptionSubscriber
+    tags:
+      - { name: event_subscriber }
+    arguments: ['@serializer', '%serializer.formats%']
diff --git a/src/EventSubscriber/DefaultExceptionSubscriber.php b/src/EventSubscriber/DefaultExceptionSubscriber.php
new file mode 100644
index 0000000..520a07d
--- /dev/null
+++ b/src/EventSubscriber/DefaultExceptionSubscriber.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\jsonapi\EventSubscriber;
+
+use Drupal\serialization\EventSubscriber\DefaultExceptionSubscriber as SerializationDefaultExceptionSubscriber;
+use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
+use Symfony\Component\HttpKernel\Exception\HttpException;
+
+class DefaultExceptionSubscriber extends SerializationDefaultExceptionSubscriber {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static function getPriority() {
+    return parent::getPriority() + 25;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setEventResponse(GetResponseForExceptionEvent $event, $status) {
+    /** @var \Symfony\Component\HttpKernel\Exception\HttpException $exception */
+    $exception = $event->getException();
+    if ($exception instanceof HttpException) {
+      $status = $status ?: $exception->getStatusCode();
+    }
+    $format = $event->getRequest()->getRequestFormat();
+    $encoded_content = $this->serializer->serialize($exception, $format);
+    $response = new Response($encoded_content, $status);
+    $event->setResponse($response);
+  }
+
+}
diff --git a/src/RequestHandler.php b/src/RequestHandler.php
index c1be69a..1c921f8 100644
--- a/src/RequestHandler.php
+++ b/src/RequestHandler.php
@@ -78,21 +78,7 @@ class RequestHandler extends RestRequestHandler {
     /** @var \Drupal\jsonapi\Error\ErrorHandlerInterface $error_handler */
     $error_handler = $this->container->get('jsonapi.error_handler');
     $error_handler->register();
-    try {
-      $response = call_user_func_array([$resource, $action], array_merge($parameters, $extra_parameters));
-    }
-    catch (\Exception $error_exception) {
-      if (!$error_exception instanceof HttpExceptionInterface) {
-        // If this is a generic exception, generate a Server Exception HTTP
-        // exception and process it.
-        $error_exception = new HttpException(500, $error_exception->getMessage(), $error_exception);
-      }
-      $content = $serializer->serialize($error_exception, $format, ['data_wrapper' => 'errors']);
-      // Add the default content type, but only if the headers from the
-      // exception have not specified it already.
-      $headers = $error_exception->getHeaders() + ['Content-Type' => $request->getMimeType($format)];
-      $response = new Response($content, $error_exception->getStatusCode(), $headers);
-    }
+    $response = call_user_func_array([$resource, $action], array_merge($parameters, $extra_parameters));
     $error_handler->restore();
 
     return $response instanceof ResourceResponse ?
@@ -127,27 +113,12 @@ class RequestHandler extends RestRequestHandler {
     $data = $response->getResponseData();
     $context = new RenderContext();
     $cacheable_metadata = $response->getCacheableMetadata();
+    $error_handler->register();
     $output = $this->container->get('renderer')
       ->executeInRenderContext($context, function () use ($serializer, $data, $format, $request, $cacheable_metadata, $error_handler, $response) {
-        $error_handler->register();
-        try {
-          $content = $serializer->serialize($data, $format, ['request' => $request, 'cacheable_metadata' => $cacheable_metadata]);
-        }
-        catch (\Exception $error_exception) {
-          if (!$error_exception instanceof HttpExceptionInterface) {
-            // If this is a generic exception, generate a Server Exception HTTP
-            // exception and process it.
-            $error_exception = new HttpException(500, $error_exception->getMessage(), $error_exception);
-          }
-          $content = $serializer->serialize($error_exception, $format, ['data_wrapper' => 'errors']);
-          // Add the default content type, but only if the headers from the
-          // exception have not specified it already.
-          $headers = $error_exception->getHeaders() + ['Content-Type' => $request->getMimeType($format)];
-          $response->setStatusCode($error_exception->getStatusCode(), $headers);
-        }
-        $error_handler->restore();
-        return $content;
+        return $serializer->serialize($data, $format, ['request' => $request, 'cacheable_metadata' => $cacheable_metadata]);
       });
+    $error_handler->restore();
     $response->setContent($output);
     if (!$context->isEmpty()) {
       $response->addCacheableDependency($context->pop());
@@ -192,16 +163,11 @@ class RequestHandler extends RestRequestHandler {
       ]);
     }
     catch (UnexpectedValueException $e) {
-      $error_exception = new HttpException(
+      throw new HttpException(
         422,
         sprintf('There was an error un-serializing the data. Message: %s.', $e->getMessage()),
         $e
       );
-      $content = $serializer->serialize($error_exception, $format, ['data_wrapper' => 'errors']);
-      // Add the default content type, but only if the headers from the
-      // exception have not specified it already.
-      $headers = $error_exception->getHeaders() + ['Content-Type' => $request->getMimeType($format)];
-      return new Response($content, $error_exception->getStatusCode(), $headers);
     }
   }
 
diff --git a/tests/src/Kernel/Plugin/FileDownloadUrlTest.php b/tests/src/Kernel/Plugin/FileDownloadUrlTest.php
index 34e3e38..1200b8d 100644
--- a/tests/src/Kernel/Plugin/FileDownloadUrlTest.php
+++ b/tests/src/Kernel/Plugin/FileDownloadUrlTest.php
@@ -22,6 +22,7 @@ class FileDownloadUrlTest extends KernelTestBase  {
   public static $modules = [
     'jsonapi',
     'file',
+    'serialization',
     'user',
   ];
 
diff --git a/tests/src/Kernel/Schema/EntityResourceSchemaTest.php b/tests/src/Kernel/Schema/EntityResourceSchemaTest.php
index e8e647a..fb7a3fc 100644
--- a/tests/src/Kernel/Schema/EntityResourceSchemaTest.php
+++ b/tests/src/Kernel/Schema/EntityResourceSchemaTest.php
@@ -22,7 +22,16 @@ class EntityResourceSchemaTest extends KernelTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['jsonapi', 'entity_test', 'user', 'system', 'node', 'field', 'text'];
+  public static $modules = [
+    'jsonapi',
+    'entity_test',
+    'user',
+    'system',
+    'node',
+    'field',
+    'text',
+    'serialization',
+  ];
 
   /**
    * {@inheritdoc}
diff --git a/tests/src/Unit/RequestHandlerTest.php b/tests/src/Unit/RequestHandlerTest.php
index b954d2c..38349a6 100644
--- a/tests/src/Unit/RequestHandlerTest.php
+++ b/tests/src/Unit/RequestHandlerTest.php
@@ -11,6 +11,7 @@ use Drupal\Tests\UnitTestCase;
 use Prophecy\Argument;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\HttpKernel\Exception\HttpException;
 use Symfony\Component\Serializer\Exception\UnexpectedValueException;
 use Symfony\Component\Serializer\SerializerInterface;
 
@@ -27,6 +28,8 @@ class RequestHandlerTest extends UnitTestCase  {
 
   /**
    * @covers ::deserializeBody
+   * @expectedException \Symfony\Component\HttpKernel\Exception\HttpException
+   * @expectedExceptionMessageRegExp "There was an error un-serializing the data\..*"
    */
   public function testDeserializeBodyFail() {
     $entity_storage = $this->prophesize(EntityStorageInterface::class);
@@ -46,18 +49,20 @@ class RequestHandlerTest extends UnitTestCase  {
     $resource_config = $this->prophesize(ResourceConfigInterface::class);
     $resource_config->getEntityTypeId()->willReturn(NULL);
     $current_context->getResourceConfig()->willReturn($resource_config->reveal());
-    /* @var Response $response */
-    $response = $request_handler->deserializeBody(
-      $request->reveal(),
-      $serializer->reveal(),
-      'invalid',
-      $current_context->reveal()
-    );
-    $this->assertInstanceOf(Response::class, $response);
-    $this->assertEquals(422, $response->getStatusCode());
-    $decoded_response = Json::decode($response->getContent());
-    $this->assertEquals('Foo', $decoded_response['errors'][0]['message']);
-    $this->assertEquals(422, $decoded_response['errors'][0]['status']);
+    try {
+      $request_handler->deserializeBody(
+        $request->reveal(),
+        $serializer->reveal(),
+        'invalid',
+        $current_context->reveal()
+      );
+      $this->fail('Expected exception.');
+    }
+    catch (HttpException $e) {
+      $this->assertEquals(422, $e->getStatusCode());
+      // Re-throw the exception so the test runner can catch it.
+      throw $e;
+    }
   }
 
 }
