-
-
Save johnmarzetti/0641973532837d7d2333 to your computer and use it in GitHub Desktop.
HTTP Status Cats Apache (htaccess) config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # HTTP Status Cats | |
| # Apache (htaccess) config created by @dave1010 modified by @johnmarzetti to use HTTP Stats Cats API | |
| # Licensed CC BY 2.0 | |
| # Images CC BY 2.0, from GirlieMac's photostream: | |
| # http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
| # Usage: copy save this file as .htaccess or add it to your httpd.conf | |
| ErrorDocument 404 '<a href="https://http.cat/[404]/" title="404 - Not Found "><img src=https://http.cat/[404]" alt="404 - Not Found"></a>' | |
| ErrorDocument 401 '<a href="https://http.cat/[401]/" title="401 - Unauthorized "><img src=https://http.cat/[401]" alt="401 - Unauthorized"></a>' | |
| ErrorDocument 406 '<a href="https://http.cat/[406]/" title="406 - Not Acceptable "><img src=https://http.cat/[406]" alt="406 - Not Acceptable"></a>' | |
| ErrorDocument 408 '<a href="https://http.cat/[408]/" title="408 - Request Timeout "><img src=https://http.cat/[408]" alt="408 - Request Timeout"></a>' | |
| ErrorDocument 409 '<a href="https://http.cat/[409]/" title="409 - Conflict "><img src=https://http.cat/[409]" alt="409 - Conflict"></a>' | |
| ErrorDocument 414 '<a href="https://http.cat/[414]/" title="414 - Request-URI Too Long "><img src=https://http.cat/[414]" width="400" height="500" alt="414 - Request-URI Too Long"></a>' | |
| ErrorDocument 502 '<a href="https://http.cat/[502]/" title="502 - Bad Gateway "><img src=https://http.cat/[502]" alt="502 - Bad Gateway"></a>' | |
| ErrorDocument 405 '<a href="https://http.cat/[405]/" title="405 - Method Not Allowed "><img src=https://http.cat/[405]" alt="405 - Method Not Allowed"></a>' | |
| ErrorDocument 403 '<a href="https://http.cat/[403]/" title="403 - Forbidden "><img src=https://http.cat/[403]" alt="403 - Forbidden"></a>' | |
| ErrorDocument 417 '<a href="https://http.cat/[417]/" title="417 - Expectation Failed "><img src=https://http.cat/[417]" alt="417 - Expectation Failed"></a>' | |
| ErrorDocument 413 '<a href="https://http.cat/[413]/" title="413 - Request Entity Too Large "><img src=https://http.cat/[413]" alt="413 - Request Entity Too Large"></a>' | |
| ErrorDocument 507 '<a href="https://http.cat/[507]/" title="507 - Insufficient Storage "><img src=https://http.cat/[507]" alt="507 - Insufficient Storage"></a>' | |
| ErrorDocument 508 '<a href="https://http.cat/[508]/" title="508 - Loop Detected "><img src=https://http.cat/[508]" alt="508 - Loop Detected"></a>' | |
| ErrorDocument 426 '<a href="https://http.cat/[426]/" title="426 - Upgrade Required "><img src=https://http.cat/[426]" alt="426 - Upgrade Required"></a>' | |
| ErrorDocument 500 '<a href="https://http.cat/[500]/" title="500 - Internal Server Error "><img src=https://http.cat/[500]" alt="500 - Internal Server Error"></a>' | |
| ErrorDocument 302 '<a href="https://http.cat/[302]/" title="302 - Found "><img src=https://http.cat/[302]" alt="302 - Found"></a>' | |
| # Apache doesn't seem to like these status codes as ErrorDocuments: | |
| #ErrorDocument 418 '<a href="https://http.cat/[418]/" title="418 - I'm a teapot "><img src=https://http.cat/[418]" alt="418 - I'm a teapot"></a>' | |
| #ErrorDocument 444 '<a href="https://http.cat/[444]/" title="444 - No Response "><img src=https://http.cat/[444]" alt="444 - No Response"></a>' | |
| #ErrorDocument 431 '<a href="https://http.cat/[431]/" title="431 - Request Header Fields Too Large "><img src=https://http.cat/[431]" alt="431 - Request Header Fields Too Large"></a>' | |
| #ErrorDocument 599 '<a href="https://http.cat/[599]/" title="599 - Network connect timeout error "><img src=https://http.cat/[599]" alt="599 - Network connect timeout error"></a>' | |
| #ErrorDocument 429 '<a href="https://http.cat/[429]/" title="429 - Too Many Requests "><img src=https://http.cat/[429]" alt="429 - Too Many Requests"></a>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment