Skip to content

Commit d104a93

Browse files
committed
README update
1 parent b0474a1 commit d104a93

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ This repository contains a "generic" HTTP error page. It's written in PHP/HTML a
55
## Features
66

77
* A single file for all 40X HTTP errors
8-
* Two options for the page background -
8+
* A JSON file contains the error codes and messages
9+
* Two options for the page background:
910
* A background image, randomly selected from a "pool" of images.
1011
* A moving gradient of four random colors.
1112
* All files (*except* `.htaccess`) are kept in a single folder
@@ -127,6 +128,22 @@ ErrorDocument 405 /tests/httperror/errpages/httperror.php
127128

128129
This part `/tests/httperror` will need editing depending on how you set up the local server.
129130

131+
### Optional Editing
132+
133+
The file `/errpages/httperror.json` contains the *known* HTTP error status codes and associated messages:
134+
135+
```json
136+
{
137+
"400": ["", "400 - Bad Request","The syntax of the URL submitted by your browser could not be understood. Please verify the address and try again."]
138+
,"401": ["", "401 - Unauthorized", "This section requires a password or is otherwise protected. If you feel you have reached this page in error, please return to the login page and try again, or contact the webmaster if you continue to have problems."]
139+
,"403": ["", "403 - Forbidden", "This section requires a password or is otherwise protected. If you feel you have reached this page in error, please return to the login page and try again, or contact the webmaster if you continue to have problems."]
140+
,"404": ["", "404 - Not Found", "The requested resource could not be found on this server. Please verify the address and try again."]
141+
,"405": ["", "405 - Method Not Allowed", "The request method is known by the server but has been disabled and cannot be used."]
142+
}
143+
```
144+
145+
Edit as necessary. Status codes can be added, removed, or edited.
146+
130147
## It Lives!
131148

132149
Most internet web servers have a *common* location for website files. It's typically located at `/home/$USER/public_html`. Where **`$USER`** is the *user* that owns the `public_html` folder. Depending on your server's particular configuration that folder may be named differently or in a different location.

0 commit comments

Comments
 (0)