Skip to main content

contexts/error

The error context.

Attributes

Name Type Description
error dict A dictionary containing details of the error.
error.message str The error’s message.
error.status_code int The HTTP status code for the response.
error.title str The error’s title.

Description

When an error occurs the error context is used when rendering the error template. This behaviour includes errors such as 404 Not Found.

Examples

{
  'error': {
    'message': 'Sorry, we cannot find that page.',
    'status_code': 404,
    'title': 'Page Not Found'
  }
}