HTTP状态码总共分为五大类:

100-199:用于指定客户端应响应的某些动作;

200-299:用于表示请求成功;

300-399:用于已经移动的文件并且常被包含在定位头信息中指定新的地址信息;

400-499:用于指出客户端的错误;

500-599:用于指出服务器错误。

 

100(Contiinue/继续)

101(Switching Protocols/转换协议)

 

200(OK/正常)

201(Created/已创建)

202(Accepted/接受)

203(Non-Authoritative Information/非官方信息)

204(No Content/无内容)

205(Reset Content/重置内容)

206(Partial Content/局部内容)

 

300(Multiple Choices/多重选择)

301(Moved Permanently/永久性转移)

302(Moved Temporarily/临时性转移)

303(See Other/参见其他信息)

304(Not Modified/未修正)

305(Use Proxy/使用代理)

307(Temporary Redirect/临时重定向)

 

400(Bad Request/错误请求)

401(Unauthorized/未授权)

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/请求URL过长)

415(Unsupported Media Type/不支持的媒体格式)

416(Requested Range Not Satisfiable/请求范围无法满足)

417(Expection Failed/期望失败)

 

500(Internal Server Error/内部服务器错误)

501(Not Implemented/未实现)

502(Bad Gateway/错误的网关)

503(Service Unavailable/服务无法获得)

504(Gateway Timeout/网关超时)

505(HTTP Version Not Supported/不支持的HTTP版本)