博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
http request method and response codes
阅读量:5150 次
发布时间:2019-06-13

本文共 2106 字,大约阅读时间需要 7 分钟。

 

 ============================

HTTP_Method
============================

 

HTTP Method Action Examples
GET Obtain information about a resource http://example.com/api/orders
(retrieve order list)
GET Obtain information about a resource http://example.com/api/orders/123
(retrieve order #123)
POST Create a new resource http://example.com/api/orders
(create a new order, from data provided with the request)
PATCH Update a resource PATCH 将来会比 PUT用的更多,PUT为完整代替, PATCH支持partial replace 
PUT Replace a whole resource  http://example.com/api/orders/123
(update order #123, from data provided with the request)
DELETE Delete a resource http://example.com/api/orders/123
(delete order #123)

 

 

============================

HTTP_CODES
============================
 参见: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
 1xx Informational
 2xx Success
 3xx Redirection
 4xx Client Error
 5xx Server Error
 具体有:
 100: 'Continue',
 101: 'Switching Protocols',
 200: 'OK',
 201: 'Created',
 202: 'Accepted',
 203: 'Non-Authoritative Information',
 204: 'No Content',
 205: 'Reset Content',
 206: 'Partial Content',
 300: 'Multiple Choices',
 301: 'Moved Permanently',
 302: 'Found',
 303: 'See Other',
 304: 'Not Modified',
 305: 'Use Proxy',
 306: '(Unused)',
 307: 'Temporary Redirect',
 400: 'Bad Request',
 401: 'Unauthorized',
 402: 'Payment Required',
 403: 'Forbidden',
 404: 'Not Found',
 405: 'Method Not Allowed',
 406: 'Not Acceptable',
 407: 'Proxy Authentication Required',
 408: 'Request Timeout',
 409: 'Conflict',
 410: 'Gone',
 411: 'Length Required',
 412: 'Precondition Failed',
 413: 'Request Entity Too Large',
 414: 'Request-URI Too Long',
 415: 'Unsupported Media Type',
 416: 'Requested Range Not Satisfiable',
 417: 'Expectation Failed',
 418: "I'm a teapot",
 428: 'Precondition Required',
 429: 'Too Many Requests',
 431: 'Request Header Fields Too Large',
 500: 'Internal Server Error',
 501: 'Not Implemented',
 502: 'Bad Gateway',
 503: 'Service Unavailable',
 504: 'Gateway Timeout',
 505: 'HTTP Version Not Supported',
 511: 'Network Authentication Required'
 

转载于:https://www.cnblogs.com/harrychinese/p/http_request_method_and_response_codes.html

你可能感兴趣的文章
phpcms v9 全站搜索两个中文以上只能显示一条数据bug修改
查看>>
线段树模板
查看>>
复习linux进程和线程
查看>>
WPF初探--弹出菜单
查看>>
(转)vc中socket编程步骤
查看>>
JDK记录-JVM原理与调优(转载)
查看>>
PHP学习笔记之数组(一)
查看>>
css 滚动视差 之 水波纹效果
查看>>
php登陆ssh执行命令
查看>>
android开发里跳过的坑——调用已安装视频播放器在有些机器上无效
查看>>
【BZOJ】4012: [HNOI2015]开店
查看>>
windows下文件名非法字符
查看>>
Block
查看>>
python学习之组成字符串的两种方式
查看>>
网络的基础知识
查看>>
ObjectiveC基础教程(第2版)
查看>>
BZOJ2243 洛谷2486 [SDOI2011]染色 树链剖分
查看>>
centos 引导盘
查看>>
JS绘制曲线图
查看>>
SQL Server 2008与SQL Server 2005共存时的问题
查看>>