1XX: 通知信息。请求被接收,继续处理2XX: 成功。请求动作被成功接收、理解和接受3XX: 重定向。需要其他的动作来完成这个请求4XX: 客户端错误。请求包含错误的语法或者缺少语法5XX: 服务端错误。服务端无法完成有效的请求
上述状态码在HTTP/1.1中定义,下面是一组相关的错误原因。
1XX
100; Section 10.1.1: Continue101; Section 10.1.2: Switching Protocols
2XX
200; Section 10.2.1: OK201; Section 10.2.2: Created202; Section 10.2.3: Accepted203; Section 10.2.4: Non-Authoritative Information204; Section 10.2.5: No Content205; Section 10.2.6: Reset Content206; Section 10.2.7: Partial Content
3XX
300; Section 10.3.1: Multiple Choices301; Section 10.3.2: Moved Permanently302; Section 10.3.3: Found303; Section 10.3.4: See Other304; Section 10.3.5: Not Modified305; Section 10.3.6: Use Proxy307; Section 10.3.8: Temporary Redirect
4XX
400; Section 10.4.1: Bad Request401; Section 10.4.2: Unauthorized402; Section 10.4.3: Payment Required403; Section 10.4.4: Forbidden404; Section 10.4.5: Not Found405; Section 10.4.6: Method Not Allowed406; Section 10.4.7: Not Acceptable407; Section 10.4.8: Proxy Authentication Required408; Section 10.4.9: Request Time-out409; Section 10.4.10: Conflict410; Section 10.4.11: Gone411; Section 10.4.12: Length Required412; Section 10.4.13: Precondition Failed413; Section 10.4.14: Request Entity Too Large414; Section 10.4.15: Request-URI Too Large415; Section 10.4.16: Unsupported Media Type416; Section 10.4.17: Requested range not satisfiable417; Section 10.4.18: Expectation Failed
5XX
500; Section 10.5.1: Internal Server Error501; Section 10.5.2: Not Implemented502; Section 10.5.3: Bad Gateway503; Section 10.5.4: Service Unavailable504; Section 10.5.5: Gateway Time-out505; Section 10.5.6: HTTP Version not supported