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 ...
随机推荐
- 前端规范--eslint standard
https://github.com/standard/standard/blob/master/docs/RULES-zhcn.md
- HashMap 和 ConcurrentHashMap比较
基础知识: 1. ConcurrentHashMap: (JDK1.7) segment数组,分段锁:segment 内部是 HashEnty数组,类似HashMap: 统计长度的方法,先不加锁统计两 ...
- Mysql相关技术细节整理
一.错误日志相关 1.mysql错误日志所在位置 windows下,错误日志文件一般在安装目录下的data目录下.扩展名是.err的文件,也可以打开安装目录下的my.ini文件检查一下linux下,错 ...
- git 提交命令
git stash -u 占存本地版本 git commit git fetch 提交 git rebase git stash pop 将本地没有提交的代码暂存,然后切换到其他分支,然后再回到当前分 ...
- Qt中(图片)资源的使用方式
Qt中使用图片资源的方法有很多种,以前我一直分不清各种之间的区别和Qt相应的处理机制,后来遇到一些实际的问题,然后再加上查阅源码和资料,总算弄明白一些事情,但是本文仅仅是个人理解,如有错误之处请告诉我 ...
- Symfony2学习笔记之事件分配器
----EventDispatcher组件使用 简介: 面向对象编程已经在确保代码的可扩展性方面走过了很长一段路.它是通过创建一些责任明确的类,让它们之间变得更加灵活,开发者可以通过继承这 ...
- <转>jmeter(三)SOAP/XML-RPC Request
本博客转载自:http://www.cnblogs.com/imyalost/category/846346.html 个人感觉不错,对jmeter讲解非常详细,担心以后找不到了,所以转发出来,留着慢 ...
- python中的logger模块
logger 提供了应用程序可以直接使用的接口handler将(logger创建的)日志记录发送到合适的目的输出filter提供了细度设备来决定输出哪条日志记录formatter决定日志记录的最终输出 ...
- 关于字符串split一些用法
split方法在大数据开发中的多用于日志解析及字段key值分割,最近需求中碰到一个问题在 无论怎么分割都会出现数组下标越界问题, 由于前台在sdk中多加了几个字段(测试数据很少,大多为空) ,需要我们 ...
- Mysql 利用拷贝data目录文件的方式迁移mysql数据库
Mysql 利用拷贝data目录文件的方式迁移mysql数据库 步骤如下: 1.首先要确定data目录 这个问题困扰了我很久,因为网上的帖子大部分只是说拷贝mysql数据库目录下的data文件夹中的数 ...