Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

HTTPError

Summary

Defines the HTTP error code to use for the specified eZ Publish error code.

Usage

HTTPError[<error_code>]=<HTTP_error_code>

Description

This configuration defines the HTTP error code to be used for each eZ Publish error code.
It considers the eZ Publish error code as array index, and the HTTP error code as value.

The following eZ Publish error codes for kernel are currently defined:

  • 1 - Access denied
  • 2 - Object not found
  • 3 - Object not available
  • 4 - Object has moved
  • 20 - Module not found
  • 21 - Module view not found
  • 22 - Module or view disabled
  • 50 - No DB connection

For the complete list of HTTP error codes, check the following list here.

Examples

HTTPError[20]=404

Ricardo Correia (30/07/2013 2:20 pm)

Ricardo Correia (30/07/2013 2:20 pm)


Comments

There are no comments.