HTTP 状态字

来源:互联网 发布:java sock服务端 编辑:程序博客网 时间:2024/05/20 19:32

HTTP回包的状态字由一个三位数的整型表示。

状态字的类型

第一位数字用于识别该状态字的大体类型
一共有1-5 五种

状态码 意义 说明 1xx 信息(Informational) 请求已经收到,正在处理 2xx 成功(Success) 当前的操作已经成功 3xx 重定向(Redirection) 未完成请求,需要跳转到其他操作 4xx 客户端错误(Client Error) 请求可能包含错误的语法,或者请求不能被满足 5xx 服务器错误(Server Error) 请求合法,但服务器出现了错误

具体状态码

状态码 意义 100 Continue 101 Switching Protocols 200 OK 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 305 Use Proxy 307 Temporary Redirect 400 Bad Request 402 Payment Required 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Time-out 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Request Entity Too Large 414 Request-URI Too Large 415 Unsupported Media Type 416 Requested range not satisfiable 417 Expectation Failed 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Time-out 505 HTTP Version not supported
0 0
原创粉丝点击