Volley response code 404 500

转载 2015年11月19日 10:06:03
 转自:王小波的博客 -- http://blog.sina.com.cn/wxbandcy
原始时间:(2012-10-22 16:22:58)
responseCode
表示三位字数的 HTTP 状态码 (Status-Code) 的 int
  • 1xx:Informational
  • 2xx:Success
  • 3xx:Redirection
  • 4xx:Client Error
  • 5xx:Server Error 
 
HTTP status codes returned by servers on the Internet.
从Internet返回的HTTP status代码(HTTP 状态字)
HTTP_STATUS_CONTINUE (100)
The request can be continued.
请求不能被继续
HTTP_STATUS_SWITCH_PROTOCOLS (101)
The server has switched protocols in an upgrade header.
通过新的header服务器的协议被转换了
HTTP_STATUS_OK (200)
The request completed successfully.
请求成功的完成
HTTP_STATUS_CREATED (201)
The request has been fulfilled and resulted in the creation of a new resource.
通过新的资源请求已经被完成
HTTP_STATUS_ACCEPTED (202)
The request has been accepted for processing, but the processing has not been completed.
请求已经被接受处理,但是处理还没有完成
HTTP_STATUS_PARTIAL (203)
The returned meta information in the entity-header is not the definitive set available from the origin server.
从服务器返回的在entity-header中的meta信息是无效的
HTTP_STATUS_NO_CONTENT (204)
The server has fulfilled the request, but there is no new information to send back.
服务器实现了请求,但是没有返回信息
HTTP_STATUS_RESET_CONTENT (205)
The request has been completed, and the client program should reset the document view that caused the request to be sent to allow the user to easily initiate another input action.
请求已经被完成,并且web程序(客户端程序浏览器程序)已经重置了文档视图目录(content),这个目录很容易允许使用者用另一个动作发送请求
HTTP_STATUS_PARTIAL_CONTENT (206)
The server has fulfilled the partial GET request for the resource.
服务器已经为资源完成了部分GET请求
HTTP_STATUS_AMBIGUOUS (300)
The server couldn't decide what to return.
服务器不能判定返回什么
HTTP_STATUS_MOVED (301)
The requested resource has been assigned to a new permanent URI (Uniform Resource Identifier), and any future references to this resource should be done using one of the returned URIs.
被请求的资源已经被分配给新的URI,并且以后引用时都使用这个URIs资源。
HTTP_STATUS_REDIRECT (302)
The requested resource resides temporarily under a different URI (Uniform Resource Identifier).
请求的资源临时在不同的uri下
HTTP_STATUS_REDIRECT_METHOD (303)
The response to the request can be found under a different URI (Uniform Resource Identifier) and should be retrieved using a GET HTTP verb on that resource.
请求的资源不能在不同的uri下找到,并且从新使用GET HTTP在服务器上从新检索
HTTP_STATUS_NOT_MODIFIED (304)
The requested resource has not been modified.
请求的资源没有被改变
HTTP_STATUS_USE_PROXY (305)
The requested resource must be accessed through the proxy given by the location field.
请求的资源必须通过特定的代理获得
HTTP_STATUS_REDIRECT_KEEP_VERB (307)
The redirected request keeps the same HTTP verb. HTTP/1.1 behavior.
从定位请求,
400 Invalid syntax. 语法问题
401 Access denied. 访问拒绝
402 Payment required. 必须完整
403 Request forbidden. 请求被禁止
404 Object not found. 对象没有找到
405 Method is not allowed. 方法不允许
406 No response acceptable to client found. 客户端没有响应
407 Proxy authentication required. 代理需要验证
408 Server timed out waiting for request. 等等请求时服务器断开连接
409 User should resubmit with more info. 有冲突用户应该进行检查
410 Resource is no longer available. 资源不可用
411 Server refused to accept request without a length. 服务器拒绝接受没有长度的请求
412 Precondition given in request failed. 放弃请求失败的条件
413 Request entity was too large. 请求太大
414 Request Uniform Resource Identifier (URI) too long. 请求的URI 太长
415 Unsupported media type. 不支持MEDIA类型
449 Retry after doing the appropriate action. 在作了适当动作后重试
500 Internal server error. 服务器内部错误
501 Server does not support the functionality required to fulfill the request. 服务器不支持请求的功能
502 Error response received from gateway. 从网关收到错误应答
503 Temporarily overloaded. 过载
504 Timed out waiting for gateway. 等待网关时请求断开
505 HTTP version not supported. 不支持HTTP的版本

Android官方通信框架Volley:解析VolleyError获取包体信息

上一篇Fiddler抓Android设备报文,虽然有了抓包工具,但是如果遇到HTTP 500这样的问题,还是很麻烦,有没有一种方法可以直接在LOGCAT中看到html报文内容呢,这样就可以快速的定位问...

Volley网络框架使用过程中的一些报错解决办法。

今天第一次开始使用Volley网络框架,的确使用十分便利。大致的使用步骤如下: 1.创建一个RequestQueue对象。 2.创建一个StringRequest或者JsonRequest对象 ...

Server returned HTTP response code: 500 for URL: http.......错误

在前不久做一个项目需要调用第三方接口,但一直报Server returned HTTP response code: 500 for URL: http.......错误,经过调试接口可正常调用并返回...

Server returned HTTP response code: 500 for URL解决方法

最近在做web service相关的东西,老师的作业题如下: 开发一个Java类,手工编写WSDL文档,并打包发布到Axis容器;客户端调用程序:基于Socket或HTTP库,自己构造SOAP调用报...

The development server returned response error code: 500 in react-native

写ReactNative应用时遇到:The development server returned response error code: 500,经查看是由于某个modules不在modules ...

java.io.IOException: Server returned HTTP response code: 500 for URL

java.io.IOException: Server returned HTTP response code: 500 for URL java.io.IOException: Server ret...

Struts 2 + websocket handshake unexpected response code 404问题

环境: tomcat 7  + Struts 2 Spring4 MyBatis  服务端代码: @ServerEndpoint(value = "/wsServer", configurato...

how to find out the response code(200,404,400...) of the URL?

javax.net.ssl.SSLException

Dynamic Web project,Jsp可正常访问,servlet出现404,刷新出现Http500,解决方式

新手建立首个Dynamic Web project,Jsp可正常访问,servlet出现404,刷新出现Http500.解决方式如下:...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Volley response code 404 500
举报原因:
原因补充:

(最多只允许输入30个字)