Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
PHP

Journal produke's Journal: Serve a page for every HTTP Status Code (all 57)

WOW, I served a page for every single HTTP Status Code and saved Headers and Content

There are 57 recognized HTTP Status Codes in the latest version of Apache. But chances are that you will only ever see or hear about 3-6 of them. Well I figured out a neat little hack by looking in the Apache Source Code that will let anyone setup Apache to send ANY HTTP status code for specific requests. I went ahead and performed the requests on all 57 of my special http status code spitting pages. I saved the headers and src for each one, so now you can use this page as a literal map for designing cgi, perl, and php scripts that have custom headers.. Now you will be able to find out what each of those 57 Status Codes do.. and copy them. All of this is possible if you have htaccess setup..

This discussion has been archived. No new comments can be posted.

Serve a page for every HTTP Status Code (all 57)

Comments Filter:

"When the going gets tough, the tough get empirical." -- Jon Carroll

Working...