_codes = {

    # Informational.
: ('continue',),
: ('switching_protocols',),
: ('processing',),
: ('checkpoint',),
: ('uri_too_long', 'request_uri_too_long'),
: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'),
: ('created',),
: ('accepted',),
: ('non_authoritative_info', 'non_authoritative_information'),
: ('no_content',),
: ('reset_content', 'reset'),
: ('partial_content', 'partial'),
: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'),
: ('already_reported',),
: ('im_used',), # Redirection.
: ('multiple_choices',),
: ('moved_permanently', 'moved', '\\o-'),
: ('found',),
: ('see_other', 'other'),
: ('not_modified',),
: ('use_proxy',),
: ('switch_proxy',),
: ('temporary_redirect', 'temporary_moved', 'temporary'),
: ('permanent_redirect',
'resume_incomplete', 'resume',), # These 2 to be removed in 3.0 # Client Error.
: ('bad_request', 'bad'),
: ('unauthorized',),
: ('payment_required', 'payment'),
: ('forbidden',),
: ('not_found', '-o-'),
: ('method_not_allowed', 'not_allowed'),
: ('not_acceptable',),
: ('proxy_authentication_required', 'proxy_auth', 'proxy_authentication'),
: ('request_timeout', 'timeout'),
: ('conflict',),
: ('gone',),
: ('length_required',),
: ('precondition_failed', 'precondition'),
: ('request_entity_too_large',),
: ('request_uri_too_large',),
: ('unsupported_media_type', 'unsupported_media', 'media_type'),
: ('requested_range_not_satisfiable', 'requested_range', 'range_not_satisfiable'),
: ('expectation_failed',),
: ('im_a_teapot', 'teapot', 'i_am_a_teapot'),
: ('misdirected_request',),
: ('unprocessable_entity', 'unprocessable'),
: ('locked',),
: ('failed_dependency', 'dependency'),
: ('unordered_collection', 'unordered'),
: ('upgrade_required', 'upgrade'),
: ('precondition_required', 'precondition'),
: ('too_many_requests', 'too_many'),
: ('header_fields_too_large', 'fields_too_large'),
: ('no_response', 'none'),
: ('retry_with', 'retry'),
: ('blocked_by_windows_parental_controls', 'parental_controls'),
: ('unavailable_for_legal_reasons', 'legal_reasons'),
: ('client_closed_request',), # Server Error.
: ('internal_server_error', 'server_error', '/o\\', '✗'),
: ('not_implemented',),
: ('bad_gateway',),
: ('service_unavailable', 'unavailable'),
: ('gateway_timeout',),
: ('http_version_not_supported', 'http_version'),
: ('variant_also_negotiates',),
: ('insufficient_storage',),
: ('bandwidth_limit_exceeded', 'bandwidth'),
: ('not_extended',),
: ('network_authentication_required', 'network_auth', 'network_authentication'),

Http_code码的更多相关文章

  1. curl http_code 状态码

    1.只得到一个url的http_code的状态码 curl -I -m 10 -o /dev/null -s -w %{http_code} http://127.0.0.1/a.html 查询hea ...

  2. Curl http_code 状态码 意义及信息

    shell命令:curl -I -m 10 -o /dev/null -s -w %{http_code} http://test.com curl_init — 初始化一个curl会话curl_co ...

  3. curl http_code状态码 含义

    curl爬取过程中,会返回一个http_code,下面是他们的意义信息 $http_code["]="Unable to access"; $http_code[&quo ...

  4. 常用HTTP状态码和CURL 000问题

      最近在测试CDN服务质量问题,测试过程中返回了一些不同的状态码,当然有一些常用的,也有一些不常用的.最奇葩的是在使用curl命令的时候出现000状态码,问了很多同事,对这个000的反应跟新事物是的 ...

  5. 官网服务质量检测脚本(源码来自《Python自动化运维实战》第二版刘天斯)

    脚本Python版本2.7 #!/usr/bin/python #-*- coding:utf-8 -*- import os,sys import time import sys import py ...

  6. curl获得http响应码 302 和绑定host

    shell curl 取得HTTP返回的状态 获取状态码 curl -I -m 10 -o /dev/null -s -w %{http_code} www.baidu.com 获取时间   curl ...

  7. 使用curl获取网站的http的状态码

    发布:thebaby   来源:net     [大 中 小] 本文分享一例shell脚本,一个使用curl命令获取网站的httpd状态码的例子,有需要的朋友参考下.本文转自:http://www.j ...

  8. (转)Http状态码301和302概念简单区别及企业应用案例

    Http状态码301和302的区别及企业应用案例 原文:http://blog.51cto.com/oldboy/1774260 1.什么是301重定向? 301重定向/跳转一般,表示本网页永久性转移 ...

  9. zabbix自动发现 url 以及对http返回状态码监控实现 告警

    2019-06-04 18:39:12 目的:批量监控业务URL的返回状态码,通过zabbix监控判断业务好坏. 1.zabbix安装 请查看此永久链接:https://www.cnblogs.com ...

随机推荐

  1. ::before 伪元素三角

    ul::before{ content: ''; width:; height:; border: 10px solid transparent; border-bottom: 10px solid ...

  2. 【JavaScript 6连载】六、认识原型

    <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...

  3. vue打包报内存溢出

    vue-cli 构建的项目:package.json 文件里修改: "build": "node build/build.js" 修改为: "buil ...

  4. ubunta apt install error

    ubuntu系统: 用apt-get命令安装一些软件包时,总报错:E:could not get lock /var/lib/dpkg/lock -open等 出现这个问题的原因可能是有另外一个程序正 ...

  5. 简单了解一下php的迭代生成器yield

    yield是从PHP5.5开始有的,关于yidle的说明鸟哥的博客做了详细说明,我觉得是有点复杂,在看了几篇其他的帖子还有案例,我大概知道yield的作用就是在做大量数据循环处理的时候,能节省很大一部 ...

  6. ElasticSearch vs Solr多维度分析对比

    福利 => 每天都推送 欢迎大家,关注微信扫码并加入我的4个微信公众号:   大数据躺过的坑      Java从入门到架构师      人工智能躺过的坑         Java全栈大联盟   ...

  7. RTP协议全解析(H264码流和PS流)

    转自:http://blog.csdn.net/chen495810242/article/details/39207305 写在前面:RTP的解析,网上找了很多资料,但是都不全,所以我力图整理出一个 ...

  8. the Captain题解;

    BZOJ 4152 很显然这个题是让找最短路: 这种通过一个节点到达另一个点的路径我们可以想到dijkstra,然后这道题我们可以看到点是比较多的,所以我们怎么存图呢? 首先我们对于任意三个点,A(x ...

  9. linux 计划任务 crontab 简单用法

    添加计划任务: 方法1: crontab -e 方法2: vim /etc/crontab #这种方式进去的文件有个sample可供参考 查看已经启动的任务:crontab -l 查看运行状态:ser ...

  10. 20145319 《计算机病毒》动态分析lab3-2

    20145319 <计算机病毒>动态分析lab3-2(实践六) 实践过程 基础分析 拿到恶意代码时,首先使用PE ID打开,查看其中一些基础信息以及观察该恶意代码是否加壳,来确定下一步分析 ...