ERRORDOCUMENT Section
There are four ways to troubleshoot an error in WebtoB:
-
Displays the error message defined in the source code.
-
Displays the error message defined by the user.
-
Redirect to a local URL.
-
Redirect to an external URL.
For the second, third and fourth cases, the ERRORDOCUMENT section is set to redirect to a specific page for a particular HTTP response status code. All HTTP status codes, except HTTP 401 status code, can be configured.
Configuration Items
The following is the environment configuration format of the ERRORDOCUMENT section.
#"error_document": { #"error_document_list": [ { "name": string, "status": integer, # (HTTP status code) "url": string } ] }
Refer to Types of Setting Values and Configuration Methods for more information on symbols and details of the ERRORDOCUMENT section configuration items. |
error_document_list
The following is a list of ERRORDOCUMENT settings.
Item | Description |
---|---|
Data Type |
Array (object) |
error_document_list/name (Required)
The name of the ERRORDOCUMENT setting. This 'name' must be set when using the functionality of the ERRRORDOCUMENT section in other sections.
Item | Description |
---|---|
Data Type |
String |
Range |
Up to 31 characters |