Http_code码
_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码的更多相关文章
- 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 ...
- Curl http_code 状态码 意义及信息
shell命令:curl -I -m 10 -o /dev/null -s -w %{http_code} http://test.com curl_init — 初始化一个curl会话curl_co ...
- curl http_code状态码 含义
curl爬取过程中,会返回一个http_code,下面是他们的意义信息 $http_code["]="Unable to access"; $http_code[&quo ...
- 常用HTTP状态码和CURL 000问题
最近在测试CDN服务质量问题,测试过程中返回了一些不同的状态码,当然有一些常用的,也有一些不常用的.最奇葩的是在使用curl命令的时候出现000状态码,问了很多同事,对这个000的反应跟新事物是的 ...
- 官网服务质量检测脚本(源码来自《Python自动化运维实战》第二版刘天斯)
脚本Python版本2.7 #!/usr/bin/python #-*- coding:utf-8 -*- import os,sys import time import sys import py ...
- curl获得http响应码 302 和绑定host
shell curl 取得HTTP返回的状态 获取状态码 curl -I -m 10 -o /dev/null -s -w %{http_code} www.baidu.com 获取时间 curl ...
- 使用curl获取网站的http的状态码
发布:thebaby 来源:net [大 中 小] 本文分享一例shell脚本,一个使用curl命令获取网站的httpd状态码的例子,有需要的朋友参考下.本文转自:http://www.j ...
- (转)Http状态码301和302概念简单区别及企业应用案例
Http状态码301和302的区别及企业应用案例 原文:http://blog.51cto.com/oldboy/1774260 1.什么是301重定向? 301重定向/跳转一般,表示本网页永久性转移 ...
- zabbix自动发现 url 以及对http返回状态码监控实现 告警
2019-06-04 18:39:12 目的:批量监控业务URL的返回状态码,通过zabbix监控判断业务好坏. 1.zabbix安装 请查看此永久链接:https://www.cnblogs.com ...
随机推荐
- python中函数嵌套、函数作为变量以及闭包的原理
嵌套函数: python允许创建嵌套函数.也就是说我们可以在函数里面定义函数,而且现有的作用域和变量生存周期依旧不变. 例子: #encoding=utf-8 def outer(): name ...
- Linux基础命令---防火墙iptables
iptables iptables指令用来设置Linux内核的ip过滤规则以及管理nat功能.iptables用于在Linux内核中设置.维护和检查IPv4数据包过滤规则表.可以定义几个不同的表.每个 ...
- DB2的空间数据库管理复杂配置
计算机条件: a机器:linux系统 安装arcgis server b机器:windows系统 安装catalog c机器:linux系统 安装DB2 ...
- 自学Java第四周的总结
在这一周里我主要把以前学的知识复习了一遍,加深了自己对那些知识点的熟悉程度.另外我还学习了有关于Java中的异常处理.继承.抽象类等相关知识.了解了其基本意义,即继承是java面向对象编程技术的一块基 ...
- ==和equasl、hashmap原理(***)
public class String01 { public static void main(String[] args) { String a="test"; String b ...
- socket编程-阻塞和非阻塞
转自:https://www.cnblogs.com/sunziying/p/6501045.html 建立连接 阻塞方式下,connect首先发送SYN请求道服务器,当客户端收到服务器返回的SYN的 ...
- Atlas读写分离[高可用]
Atlas下载地址: https://github.com/Qihoo360/Atlas/releases Atlas是出于360的, 比mysql-proxy更稳定, 部署起来更方便. 环境: pr ...
- 记一次gitlab添加用户收不到邮件的解决办法
之前再gitlab服务器上创建账号可以正常收到邮件,最近就收不到,查了gitlab的配置以及postfix服务都没有问题,后来查看了发信25端口,发现该25端口并没有开启(postfix已经开启),提 ...
- PHP html mysql js 乱码问题,UTF-8(乱码)
一.HTML页面转UTF-8编码问题 1.在head后,title前加入一行: <meta http-equiv='Content-Type' content='text/html; chars ...
- 20145326蔡馨熤《网络对抗》—— Web基础
20145326蔡馨熤<网络对抗>—— Web基础 1.实验后回答问题 (1)什么是表单. 表单是一个包含表单元素的区域,表单元素是允许用户在表单中输入信息的元素,表单在网页中主要负责数据 ...