HTTP的 各种状态码相应参数返回值

1** 请求收到,继续处理中

2** 操作成功,分析,接受

3** 完成此请求必须进一步处理

4** 请求包含一个错误语法或不能完成

5** 服务器执行一个完全有效请求失败

100:Continue  初始的请求已经接受,客户应当继续发送请求的其余部分。(HTTP 1.1新)

101:Switching Protocols  服务器将遵从客户的请求转换到另外一种协议(HTTP 1.1新) 

102:Processing

200:OK  一切正常,对GET和POST请求的应答文档跟在后面

201:Created 服务器已经创建了文档,Location头给出了它的URL

202:Accepted   已经接受请求,但处理尚未完成。

203:Non-Authoriative Information  文档已经正常地返回,但一些应答头可能不正确,因为使用的是文档的拷贝(HTTP 1.1新)。 

204:No Content   没有新文档,浏览器应该继续显示原来的文档。如果用户定期地刷新页面,而Servlet可以确定用户文档足够新,这个状态代码是很有用的。 

205:Reset Content  没有新的内容,但浏览器应该重置它所显示的内容。用来强制浏览器清除表单输入内容(HTTP 1.1新)。

206:Partial Content

207:Multi-Status

300:Multiple Choices

301:Moved Permanently

302:Found

303:See Other

304:Not Modified

305:Use Proxy

306:(Unused)

307:Temporary Redirect

400:Bad Request

401:Unauthorized

402:Payment Granted

403:Forbidden

404:File 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

422:Unprocessable Entity

423:Locked

424:Failed Dependency

500:Internal Server Error

501:Not Implemented

502:Bad Gateway

503:Service Unavailable

504:Gateway Timeout

505:HTTP Version Not Supported

507:Insufficient Storage


猜你喜欢

转载自blog.csdn.net/qq_36341143/article/details/80465452