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 ...
随机推荐
- 自制TFT-Usart通信小项目资料打包
2010-05-08 15:05:00 用orcad画的原理图如下.
- PLSQL 问题小记
问题1:在一个拼写长字符串的函数中,若出现ora-06502或者ora-06512的错误,则有可能是在拼串的过程中,数据类型的隐式转换出了问题,如:字符类型转为数字,此时会出现错误. 解决方案:在拼串 ...
- <转>jmeter(九)逻辑控制器
本博客转载自:http://www.cnblogs.com/imyalost/category/846346.html 个人感觉不错,对jmeter讲解非常详细,担心以后找不到了,所以转发出来,留着慢 ...
- 学习Linux shell脚本中连接字符串的方法
这篇文章主要介绍了Linux shell脚本中连接字符串的方法,如果想要在变量后面添加一个字符,可以用一下方法: 代码如下: $value1=home $value2=${value1}"= ...
- Kattis之旅——Perfect Pth Powers
We say that x is a perfect square if, for some integer b, x = b2. Similarly, x is a perfect cube if, ...
- Pytorch的torch.cat实例
import torch 通过 help((torch.cat)) 可以查看 cat 的用法 cat(seq,dim,out=None) 其中 seq表示要连接的两个序列,以元组的形式给出,例如:se ...
- intel webrtc 部署
org link conference server Configure the MCU server 1. set the maximum numbers of open files, runnin ...
- phpstorm中设置代码上传到github
参考: https://blog.csdn.net/Knight_quan/article/details/54894691 https://www.300168.com/biancheng/show ...
- (6CBIR模拟问题)自己动手,编写神经网络程序,解决Mnist问题,并网络化部署
个方面: 最初的图像检索研究主要集中在如何选择合适的全局特征去描述图像内容和采用什么样的相似性度量方法进行图像匹配. 第二个研究热点是基于区域的图像检索方法,其主要思想是图像分割技术提取出图像中的物体 ...
- bzoj 2091 The Minima Game - 动态规划 - 博弈论
题目传送门 需要验证权限的传送门 题目大意 Alice和Bob轮流取$n$个正整数,Alice先进行操作.每次每人可以取任意多的数,得分是这一次取的所有数中的最小值.Alice和Bob都足够聪明,他们 ...