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 ...
随机推荐
- LUHN 模10 算法 银行卡校验
信用卡Luhn算法(模10)具体的校验过程如下: 1.从卡号最后一位数字开始,逆向将奇数位(1.3.5等等)相加. 2.从卡号最后一位数字开始,逆向将偶数位数字,先乘以2(如果乘积为两位数,则将其减去 ...
- Django 应用 静态文件配置
Django 应用 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...
- VI编辑器常用命令
Linux下的文本编辑器有很多种,vi 是最常用的,也是各版本Linux的标配.注意,vi 仅仅是一个文本编辑器,可以给字符着色,可以自动补全,但是不像 Windows 下的 word 有排版功能. ...
- Java中的ASCII码与Unicode码
先上代码 后续更新 public class Unicode { public static void main(String[] args) { char ch1 = 'c'; char ch2 = ...
- PYTHON 对SQLITE3的简单使用
SQLite是一种嵌入式数据库,它的数据库就是一个文件.由于SQLite本身是C写的,而且体积很小,所以,经常被集成到各种应用程序中,甚至在iOS和Android的App中都可以集成.Python就内 ...
- Docker学习笔记之为容器配置网络
0x00 概述 在互联网时代,网络已经成为绝大多数应用进行数据交换的主要通道,Docker 作为集群部署的利器,在网络支持上也下了许多功夫.功能丰富和强大,并不代表使用复杂,在 Docker 的封装下 ...
- Prometheus监控学习笔记之Prometheus普罗米修斯监控入门
0x00 概述 视频讲解通过链接网易云课堂·IT技术快速入门学院进入,更多关于Prometheus的文章. Prometheus是最近几年开始流行的一个新兴监控告警工具,特别是kubernetes的流 ...
- php中session同ip不同端口的多个网站session冲突的解决办法
在局域网内使用IP加端口的访问方式搭了两个相同程序的站,结果发现用户在一个站下登录后,在另一个站也同时登录了,在一个退出后,另一个站也同时退出了.看了下程序发现两个站都是使用纯session方式记录登 ...
- TCP编程:系统出现 TIME_WAIT 原因及解决办法
解决办法 打开 sysctl.conf 文件,修改以下几个参数: net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_ti ...
- Spring Boot中注入配置文件application.properties中的list 对象参数
例如要注入下列参数: dyn.spring.datasources[0].name=branchtadyn.spring.datasources[0].driverClassName=oracle.j ...