|
41 | 41 | //error stuff |
42 | 42 | $requested = $_SERVER['REQUEST_URI']; |
43 | 43 | $codes = array( |
44 | | - 400 => array('Bad Request', 'The server cannot or will not process the request due to an apparent client error.', 'sowwy'), |
45 | | - 401 => array('Unauthorized', 'You do not have access to this page.', 'sowwy'), |
46 | | - 403 => array('Forbidden', 'The server has refused to fulfill your request.', 'sowwy'), |
47 | | - 404 => array('Not Found', $requested . ' was not found on this server.', 'confused'), |
48 | | - 405 => array('Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.', 'confused'), |
49 | | - 408 => array('Request Timeout', 'Your browser failed to send a request in the time allowed by the server.', 'sowwy'), |
50 | | - 500 => array('Internal Server Error', 'The request was unsuccessful due to an unexpected condition encountered by the server.', 'confused'), |
51 | | - 502 => array('Bad Gateway', 'The server received an invalid response from the upstream server while trying to fulfill the request.', 'confused'), |
52 | | - 503 => array('Service Unavailable', 'The server is currently unavailable (because it is overloaded or down for maintenance).', 'confused'), |
53 | | - 504 => array('Gateway Timeout', 'The upstream server failed to send a request in the time allowed by the server.', 'confused'), |
| 44 | + 400 => array('Bad Request', 'The server cannot or will not process the request due to an apparent client error.', 'sowwy','400'), |
| 45 | + 401 => array('Unauthorized', 'You do not have access to this page.', 'sowwy','401'), |
| 46 | + 403 => array('Forbidden', 'The server has refused to fulfill your request.', 'sowwy','403'), |
| 47 | + 404 => array('Not Found', $requested . ' was not found on this server.', 'confused','404'), |
| 48 | + 405 => array('Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.', 'confused','405'), |
| 49 | + 408 => array('Request Timeout', 'Your browser failed to send a request in the time allowed by the server.', 'sowwy','408'), |
| 50 | + 500 => array('Internal Server Error', 'The request was unsuccessful due to an unexpected condition encountered by the server.', 'confused','500'), |
| 51 | + 502 => array('Bad Gateway', 'The server received an invalid response from the upstream server while trying to fulfill the request.', 'confused','502'), |
| 52 | + 503 => array('Service Unavailable', 'The server is currently unavailable (because it is overloaded or down for maintenance).', 'confused','503'), |
| 53 | + 504 => array('Gateway Timeout', 'The upstream server failed to send a request in the time allowed by the server.', 'confused','504'), |
54 | 54 | 999 => array('Not Logged In', 'You need to be logged in to access this page.', 'confused', '401'), |
55 | 55 | ); |
56 | 56 | $errorTitle = ($codes[$status][0]) ? $codes[$status][0] : "Error"; |
|
0 commit comments