HttpStatus各种状态

  1. JS.ns("JS.HTTPStatus","JS.XMLHttpRequest");  
  2.  /**  
  3.   * FC 2616 HTTP1.1规范的HTTP Status状态常量  
  4.   * http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10  
  5.   */  
  6.   
  7. JS.HTTPStatus = {  
  8.         //Informational 1xx  
  9.         '100' : 'Continue',  
  10.         '101' : 'Switching Protocols',  
  11.         //Successful 2xx  
  12.         '200' : 'OK',  
  13.         '201' : 'Created',  
  14.         '202' : 'Accepted',  
  15.         '203' : 'Non-Authoritative Information',  
  16.         '204' : 'No Content',  
  17.         '205' : 'Reset Content',  
  18.         '206' : 'Partial Content',  
  19.         //Redirection 3xx  
  20.         '300' : 'Multiple Choices',  
  21.         '301' : 'Moved Permanently',  
  22.         '302' : 'Found',  
  23.         '303' : 'See Other',  
  24.         '304' : 'Not Modified',  
  25.         '305' : 'Use Proxy',  
  26.         '306' : 'Unused',  
  27.         '307' : 'Temporary Redirect',  
  28.         //Client Error 4xx  
  29.         '400' : 'Bad Request',  
  30.         '401' : 'Unauthorized',  
  31.         '402' : 'Payment Required',  
  32.         '403' : 'Forbidden',  
  33.         '404' : 'Not Found',  
  34.         '405' : 'Method Not Allowed',  
  35.         '406' : 'Not Acceptable',  
  36.         '407' : 'Proxy Authentication Required',  
  37.         '408' : 'Request Timeout',  
  38.         '409' : 'Conflict',  
  39.         '410' : 'Gone',  
  40.         '411' : 'Length Required',  
  41.         '412' : 'Precondition Failed',  
  42.         '413' : 'Request Entity Too Large',  
  43.         '414' : 'Request-URI Too Long',  
  44.         '415' : 'Unsupported Media Type',  
  45.         '416' : 'Requested Range Not Satisfiable',  
  46.         '417' : 'Expectation Failed',  
  47.         //Server Error 5xx  
  48.         '500' : 'Internal Server Error',  
  49.         '501' : 'Not Implemented',  
  50.         '502' : 'Bad Gateway',  
  51.         '503' : 'Service Unavailable',  
  52.         '504' : 'Gateway Timeout',  
  53.         '505' : 'HTTP Version Not Supported'  
  54. };  
  55. JS.HTTPStatus.OK = 200;  
  56. JS.HTTPStatus.BADREQUEST = 400;  
  57. JS.HTTPStatus.FORBIDDEN = 403;  
  58. JS.HTTPStatus.NOTFOUND = 404;  
  59. JS.HTTPStatus.TIMEOUT = 408;  
  60. JS.HTTPStatus.SERVERERROR = 500;  

转载于:https://www.cnblogs.com/linjiaxin/p/6706829.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值