responses = {
100: ('Continue', 'Request received, please continue'),
101: ('Switching Protocols',
'Switching to new protocol; obey Upgrade header'), 200: ('OK', 'Request fulfilled, document follows'),
201: ('Created', 'Document created, URL follows'),
202: ('Accepted',
'Request accepted, processing continues off-line'),
203: ('Non-Authoritative Information', 'Request fulfilled from cache'),
204: ('No Content', 'Request fulfilled, nothing follows'),
205: ('Reset Content', 'Clear input form for further input.'),
206: ('Partial Content', 'Partial content follows.'), 300: ('Multiple Choices',
'Object has several resources -- see URI list'),
301: ('Moved Permanently', 'Object moved permanently -- see URI list'),
302: ('Found', 'Object moved temporarily -- see URI list'),
303: ('See Other', 'Object moved -- see Method and URL list'),
304: ('Not Modified',
'Document has not changed since given time'),
305: ('Use Proxy',
'You must use proxy specified in Location to access this '
'resource.'),
307: ('Temporary Redirect',
'Object moved temporarily -- see URI list'), 400: ('Bad Request',
'Bad request syntax or unsupported method'),
401: ('Unauthorized',
'No permission -- see authorization schemes'),
402: ('Payment Required',
'No payment -- see charging schemes'),
403: ('Forbidden',
'Request forbidden -- authorization will not help'),
404: ('Not Found', 'Nothing matches the given URI'),
405: ('Method Not Allowed',
'Specified method is invalid for this server.'),
406: ('Not Acceptable', 'URI not available in preferred format.'),
407: ('Proxy Authentication Required', 'You must authenticate with '
'this proxy before proceeding.'),
408: ('Request Timeout', 'Request timed out; try again later.'),
409: ('Conflict', 'Request conflict.'),
410: ('Gone',
'URI no longer exists and has been permanently removed.'),
411: ('Length Required', 'Client must specify Content-Length.'),
412: ('Precondition Failed', 'Precondition in headers is false.'),
413: ('Request Entity Too Large', 'Entity is too large.'),
414: ('Request-URI Too Long', 'URI is too long.'),
415: ('Unsupported Media Type', 'Entity body in unsupported format.'),
416: ('Requested Range Not Satisfiable',
'Cannot satisfy request range.'),
417: ('Expectation Failed',
'Expect condition could not be satisfied.'), 500: ('Internal Server Error', 'Server got itself in trouble'),
501: ('Not Implemented',
'Server does not support this operation'),
502: ('Bad Gateway', 'Invalid responses from another server/proxy.'),
503: ('Service Unavailable',
'The server cannot process the request due to a high load'),
504: ('Gateway Timeout',
'The gateway server did not receive a timely response'),
505: ('HTTP Version Not Supported', 'Cannot fulfill request.'),
}

感谢大神的整理!

关键是,上述字典,可直接拿来使用!O(∩_∩)O哈哈~

转自:https://www.cnblogs.com/mmbbflyer/p/6340375.html

最新文章

  1. Django基础,Day9 - 静态文件目录与路径设置说明(eg. images, JavaScript, CSS)
  2. hybird混合式开发搭建
  3. Java 静态语句块、语句块、构造函数执行顺序
  4. 在Android上实现使用Facebook登录(基于Facebook SDK 3.5)
  5. UIViewController卸载过程(ios6.0之前)
  6. C#泛型集合之Dictionary<k, v>使用技巧
  7. BZOJ 2751: [HAOI2012]容易题(easy) 数学
  8. Html,Css,Javascript及其他的注释方法详解
  9. 转摘:常用ubuntu 关机,重启,注销命令
  10. Qt: 把内容写进字符串中与C++很相似(使用QTextStream包装QString)
  11. EventBus3.0使用总结
  12. 常用mysql笔记
  13. 黑马day07 注册案例(二)
  14. unity 判断是安卓还是IOS平台
  15. 博客迁移,新地址:bfsan.github.io
  16. 编译安装mysql5.7.24踩的坑
  17. position:fixed固定定位的用法
  18. [转]linux用户管理
  19. jar包安装到本地仓库
  20. 【工具】switchhost

热门文章

  1. Mayor's posters (离散化线段树+对lazy的理解)
  2. 163data.com.cn data
  3. Gradient Boosting Decision Tree
  4. asp、aspx、php、jsp万能密码大全【笔记】
  5. Union-Find(并查集): Dynamic Connectivity 问题
  6. Spring源码窥探之:ImportSelector
  7. 关于equals和hashcode问题
  8. Spring源码窥探之:BeanPostProcessor
  9. Flume组件
  10. 012——软件安装之_matlab2019安装