Error pages

Drupal error pages

Error pages provided by Drupal (e.g. 403, 404 page) are shown by default and can be configured in Drupal. Configuration is done in the Drupal backend under Configuration > System > Basic site settings > Error pages. With server-rendering, the HTTP status code is correctly forwarded.

The Nuxt error page is only shown when the backend cannot be reached (error 504 Gateway timeout).

Custom error pages in Nuxt

In order to use regular Nuxt error pages for regular 403, 404 error pages, you can enable the customErrorPages option in nuxt.config.js:

export default defineNuxtConfig({
  drupalCe: {
    customErrorPages: true,
    // options...
  }
})

When custom error pages are active, the nuxt error handling is used for all error HTTP status codes returned by Drupal.