状态码分类:
类别 | 原因短语 | |
1XX | Informational (信息性状态码) | 接受的请求正在处理 |
2XX | Success (成功状态码) | 请求正常处理完毕 |
3XX | Redirection (重定向) | 需要进行附加操作以完成请求 |
4XX | Client error (客户端错误 ) | 客户端请求出错,服务器无法处理请求 |
5XX | Server Error (服务器错误) | 服务器处理请求出错 |
200:这一类型的状态码,代表请求已成功被服务器接收、理解、并接受。
300: Multiple Choices 多路选择
301:Moved Permanently永久性重定向
302:Found临时性重定向
400: Bad Request 错误请求 请求报文中存在语法错误 。
401: Unauthorized 未认证
402:Payment Required 需要付费
403:服务器拒绝该次访问,访问权限出现问题。FORBIDDEN。 被禁止.
404:无法找到请求的资源,NOT FOUND。
500:Internal Server Error 服务器遇到了一个未曾预料的状况,导致了它无法完成对请求的处理。一般来说,这个问题都会在服务器的程序码出错时出现
502:Bad Gateway 作为网关或者代理工作的服务器尝试执行请求时,从上游服务器接收到无效的响应
504:Gateway Time-out 网关超时