2014-11-14
아파치 설정에서 ErrorDocument에 관한 설정이 있다.
예를 들어 404에러가 뜰 경우 404에러 페이지가 보이는것은 해당 설정에서 지정 되어 있기 때문이다.

일단 사용 되는 문법은
ErrorDocument <3-digit-code> <action>
와 같고, 예를 들면
ErrorDocument 403 /error/noindex.html
처럼 사용하면 된다.

참고로 에러의 종류는 아래와 같다.
Informational
100 - Continue
101 - Switching Protocols
Successful
200 - OK
201 - Created
202 - Accepted
203 - Non-Authoritative Information
204 - No Content
205 - Reset Content
206 - Partial Content
Redirection
300 - Multiple Choices
301 - Moved Permanently
302 - Found
303 - See Other
304 - Not Modified
305 - Use Proxy
307 - Temporary Redirect
Client Error
400 - Bad Request
401 - Unauthorized
402 - Payment Required
403 - Forbidden
404 - Not Found
405 - Method Not Allowed
406 - Not Acceptable
407 - Proxy Authentication Required
408 - Request Timeout
409 - Conflict
410 - Gone
411 - Length Required
412 - Precondition Failed
413 - Request Entity Too Large
414 - Request-URI Too Long
415 - Unsupported Media Type
416 - Requested Range Not Satisfiable
417 - Expectation Failed
Server Error
500 - Internal Server Error
501 - Not Implemented
502 - Bad Gateway
503 - Service Unavailable
504 - Gateway Timeout
505 - HTTP Version Not Supported