HTTP的状态码有很多种,主要有1xx(临时响应).2xx(成功).3xx(已重定向).4xx(请求错误)以及5xx(服务器错误)五个大类,每个大类还对应一些具体的分类.平时我们接触比较多的是200.400.500等. 这里我们主要讨论一下状态码204,在HTTP RFC 2616中关于204的描述如下: If the client is a user agent, it SHOULD NOT change its document view from that which caused the…
HTTP状态码3XX表示重定向,表明浏览器需要执行某些特殊的处理以正确处理请求. 301 Moved Permanently 永久性定向.该状态码表示请求的资源已被分配了新的URI,以后应使用资源现在所指的URI. 302 Found 临时性重定向.该状态码表示请求的资源已被分配了新的URI,希望用户(本次)能使用新的URI访问.和301相似,但302表示的资源不是永久移动,只是临时性的.换句话说,已移动的资源对应的URI将来还有可能发生变化,比如,用户把uri保存为书签,但不会像301状态码出…
在HtttpServletResponse类中有关于状态码的描述. static int SC_ACCEPTED Status code (202) indicating that a request was accepted for processing, but was not completed. 状态码(202)表明处理的请求被接受,但未能完成. static int SC_BAD_GATEWAY Status code (502) indicating that the HTTP se…
200 - OK,服务器成功返回网页 - Standard response for successful HTTP requests. 301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置. - This and all future requests should be directed to the given. 403 - Forbidden(禁止访问),服务器拒绝请求 - forbidden request (matches a…
一些常见的http状态码 200 - OK,服务器成功返回网页 - Standard response for successful HTTP requests. 301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置. - This and all future requests should be directed to the given. 403 - Forbidden(禁止访问),服务器拒绝请求 - forbidden reques…