Common HTTP Response Codes & HTTP Request Methods

Common HTTP Response Codes:

 

Code

Description

200 OK

This response code is returned if the document or file in question is found and served correctly.

304 Not Modified

This response code is returned if a browser has indicated that it has a local, cached copy, and the server’s copy has not changed from this cached copy.

401 Unauthorized

This response code is generated if the request in question requires authorization to access the requested document.

403 Forbidden

This response code is returned if the requested document does not have proper permissions to be accessed by the requestor.

404 Not Found

This response code is sent back if the file that is attempting to be accessed could not be found (e.g., if it doesn’t exist).

500 Internal Server Error

This code will be returned if the server that is being contacted has a problem.

503 Service Unavailable

This response code is generated if the server is too overwhelmed to handle the request.

 

HTTP Request Methods

 

Method

Description

GET

The most common means of sending a request; simply requests a specific resource from the server

HEAD

Similar to a GET request, except that the response will come back without the response body; useful for retrieving headers

POST

Allows a request to send along user-submitted data (ideal for web-based forms)

PUT

Transfers a version of the file request in question

DELETE

Sends a request to remove the specified document

TRACE

Sends back a copy of the request in order to monitor its progress

OPTIONS

Returns a full list of available methods; useful for checking on what methods a server supports

CONNECT

A proxy-based request used for SSL tunneling

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值