博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTTP 常见错误代码与含义
阅读量:6882 次
发布时间:2019-06-27

本文共 2280 字,大约阅读时间需要 7 分钟。

hot3.png

/**
Constants

int HTTP_ACCEPTED Numeric status code,          202: Accepted 
int HTTP_BAD_GATEWAY Numeric status code,       502: Bad Gateway 
int HTTP_BAD_METHOD Numeric status code,        405: Bad Method 
int HTTP_BAD_REQUEST Numeric status code,       400: Bad Request 
int HTTP_CLIENT_TIMEOUT Numeric status code,    408: Client Timeout 
int HTTP_CONFLICT Numeric status code,          409: Conflict 
int HTTP_CREATED Numeric status code,           201: Created 
int HTTP_ENTITY_TOO_LARGE Numeric status code,  413: Entity too large 
int HTTP_FORBIDDEN Numeric status code,         403: Forbidden 
int HTTP_GATEWAY_TIMEOUT Numeric status code,   504: Gateway timeout 
int HTTP_GONE Numeric status code, 410: Gone 
int HTTP_INTERNAL_ERROR Numeric status code,    500: Internal error 
int HTTP_LENGTH_REQUIRED Numeric status code,   411: Length required 
int HTTP_MOVED_PERM Numeric status code,        301 Moved permanently 
int HTTP_MOVED_TEMP Numeric status code,        302: Moved temporarily 
int HTTP_MULT_CHOICE Numeric status code,       300: Multiple choices 
int HTTP_NOT_ACCEPTABLE Numeric status code,    406: Not acceptable 
int HTTP_NOT_AUTHORITATIVE Numeric status code, 203: Not authoritative 
int HTTP_NOT_FOUND Numeric status code,         404: Not found 
int HTTP_NOT_IMPLEMENTED Numeric status code,   501: Not implemented 
int HTTP_NOT_MODIFIED Numeric status code,      304: Not modified 
int HTTP_NO_CONTENT Numeric status code,        204: No content 
int HTTP_OK Numeric status code,                200: OK 
int HTTP_PARTIAL Numeric status code,           206: Partial 
int HTTP_PAYMENT_REQUIRED Numeric status code,  402: Payment required 
int HTTP_PRECON_FAILED Numeric status code,     412: Precondition failed 
int HTTP_PROXY_AUTH Numeric status code,        407: Proxy authentication required 
int HTTP_REQ_TOO_LONG Numeric status code,      414: Request too long 
int HTTP_RESET Numeric status code,             205: Reset 
int HTTP_SEE_OTHER Numeric status code,         303: See other 

int HTTP_SERVER_ERROR This constant was deprecated in API level 1. Use HTTP_INTERNAL_ERROR instead. 

int HTTP_UNAUTHORIZED Numeric status code,     401: Unauthorized 

int HTTP_UNAVAILABLE Numeric status code,      503: Unavailable 
int HTTP_UNSUPPORTED_TYPE Numeric status code  415: Unsupported type 
int HTTP_USE_PROXY Numeric status code,        305: Use proxy. 
int HTTP_VERSION Numeric status code,          505: Version not supported 
 
*/

转载于:https://my.oschina.net/zengliubao/blog/547512

你可能感兴趣的文章
网络存储资料整理
查看>>
推荐一个 短链接服务
查看>>
安全管理平台 security management platform
查看>>
CCNA学习笔记之OSPF(理论篇)
查看>>
更改linux主机名
查看>>
centos设置时间自动与网络同步
查看>>
Practice Backbone.js with PHP :: Example 1
查看>>
最新Ghost Win7系统下载(含32位纯净版和64位旗舰版)
查看>>
openssh升级方法
查看>>
46、mysql双主复制实战
查看>>
jQuery(function(){})与(function(){})(jQuery)的区别
查看>>
搞定岳父大人 感
查看>>
EBS OM发运状态 wsh_delivery_details.RELEASED_STATUS
查看>>
JVM内存管理(二)
查看>>
我的友情链接
查看>>
java每日小算法(4)
查看>>
Service Discovery with Marathon, Mesos-DNS and HAProxy
查看>>
【java】TestBufferStream1
查看>>
centos系统,不进行域名解析,resolv.conf配置文件
查看>>
HashMap的长度为什么要是2的n次方
查看>>