Skip to content

Instantly share code, notes, and snippets.

@tonejito
Created November 5, 2012 06:30
Show Gist options
  • Save tonejito/4015668 to your computer and use it in GitHub Desktop.
Save tonejito/4015668 to your computer and use it in GitHub Desktop.
Apache httpd 2.2.x ErrorDocument Deflector Shields
# = ^ . ^ =
#
# Apache httpd DeflectorShield
# Andres Hernandez (tonejito)
# http://tonejito.blogspot.com:80/
#
# 100 Informational
# 100 Continue
ErrorDocument 100 http://localhost:80/
# 101 Switching Protocols
ErrorDocument 101 http://localhost:80/
# 102 Processing
ErrorDocument 102 http://localhost:80/
# 200 Success
# 200 OK
# ErrorDocument 200 "= ^ . ^ ="
# 201 Created
ErrorDocument 201 http://localhost:80/
# 202 Accepted
ErrorDocument 202 http://localhost:80/
# 203 Non-Authoritative Information
ErrorDocument 203 http://localhost:80/
# 204 No Content
ErrorDocument 204 http://localhost:80/
# 205 Reset Content
ErrorDocument 205 http://localhost:80/
# 206 Partial Content
ErrorDocument 206 http://localhost:80/
# 207 Multi-Status
ErrorDocument 207 http://localhost:80/
# 300 Redirection
# 300 Multiple Choices
ErrorDocument 300 "= ^ . ^ ="
# 301 Moved Permanently
ErrorDocument 301 "= ^ . ^ ="
# 302 Found
ErrorDocument 302 "= ^ . ^ ="
# 303 See Other
ErrorDocument 303 "= ^ . ^ ="
# 304 Not Modified
ErrorDocument 304 "= ^ . ^ ="
# 305 Use Proxy
ErrorDocument 305 "= ^ . ^ ="
# 306 unused
ErrorDocument 306 "= ^ . ^ ="
# 307 Temporary Redirect
ErrorDocument 307 "= ^ . ^ ="
# 400 Client
# 400 Bad Request
ErrorDocument 400 http://localhost:80/
# 401 Authorization Required
ErrorDocument 401 "= ^ . ^ ="
# 402 Payment Required
ErrorDocument 402 http://localhost:80/
# 403 Forbidden
ErrorDocument 403 http://localhost:80/
# 404 Not Found
ErrorDocument 404 http://localhost:80/
# 405 Method Not Allowed
ErrorDocument 405 http://localhost:80/
# 406 Not Acceptable
ErrorDocument 406 http://localhost:80/
# 407 Proxy Authentication Required
ErrorDocument 407 http://localhost:80/
# 408 Request Time-out
ErrorDocument 408 http://localhost:80/
# 409 Conflict
ErrorDocument 409 http://localhost:80/
# 410 Gone
ErrorDocument 410 http://localhost:80/
# 411 Length Required
ErrorDocument 411 http://localhost:80/
# 412 Precondition Failed
ErrorDocument 412 http://localhost:80/
# 413 Request Entity Too Large
ErrorDocument 413 http://localhost:80/
# 414 Request-URI Too Large
ErrorDocument 414 http://localhost:80/
# 415 Unsupported Media Type
ErrorDocument 415 http://localhost:80/
# 416 Requested Range Not Satisfiable
ErrorDocument 416 http://localhost:80/
# 417 Expectation Failed
ErrorDocument 417 http://localhost:80/
# 418 unused
ErrorDocument 418 http://localhost:80/
# 419 unused
ErrorDocument 419 http://localhost:80/
# 420 unused
ErrorDocument 420 http://localhost:80/
# 421 unused
ErrorDocument 421 http://localhost:80/
# 422 Unprocessable Entity
ErrorDocument 422 http://localhost:80/
# 423 Locked
ErrorDocument 423 http://localhost:80/
# 424 Failed Dependency
ErrorDocument 424 http://localhost:80/
# 425 No code
ErrorDocument 425 http://localhost:80/
# 426 Upgrade Required
ErrorDocument 426 http://localhost:80/
# 500 Server
# 500 Internal Server Error
ErrorDocument 500 http://localhost:80/
# 501 Method Not Implemented
ErrorDocument 501 http://localhost:80/
# 502 Bad Gateway
ErrorDocument 502 http://localhost:80/
# 503 Service Temporarily Unavailable
ErrorDocument 503 http://localhost:80/
# 504 Gateway Time-out
ErrorDocument 504 http://localhost:80/
# 505 HTTP Version Not Supported
ErrorDocument 505 http://localhost:80/
# 506 Variant Also Negotiates
ErrorDocument 506 http://localhost:80/
# 507 Insufficient Storage
ErrorDocument 507 http://localhost:80/
# 508 unused
ErrorDocument 508 http://localhost:80/
# 509 unused
ErrorDocument 509 http://localhost:80/
# 510 Not Extended
ErrorDocument 510 http://localhost:80/
# = ^ . ^ =
# vim: ts=4 filetype=apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment