4D v16.3Defining custom HTTP error pages |
||
|
4D v16.3
Defining custom HTTP error pages
Defining custom HTTP error pages
The 4D Web Server allows you to customize HTTP error pages sent to clients, based on the status code of the server response. Error pages refer to:
For a full description of HTTP error status codes, you can refer to the List of HTTP status codes (Wikipedia). To replace default 4D Web Server error pages with your own pages you just need to:
You can define one error page per status code and/or a generic error page for a range of errors, named "{number}xx.html". For example, you can create "4xx.html" for generic client errors. The 4D Web Server will first look for a {statusCode}.html page then, if it does not exist, a generic page. For example, when an HTTP response returns a status code 404:
If you define the following custom pages in your web folder:
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Language Reference ( 4D v16.2) |