Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the HTTP return codes?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "what are HTTP return codes". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

1** Reserved

100 : Continue

101 : witching Protocols

2** indicates that the request was successfully received

200 : OK

201 : Created

202 : Accepted

203 : Non-Authoritative Information

204 : No Content

205 : Reset Content

206 : Partial Content

3** Customer needs to further refine request to complete request

300 : Multiple Choices

301 : Moved Permanently

302 : Found

303 : See Other

304 : Not Modified

305 : Use Proxy

307 : Temporary Redirect

4** Customer error

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 Time-out

409 : Conflict

410 : Gone

411 : Length Required

412 : Precondition Failed

413 : Request Entity Too Large

414 : Request-URI Too Large

415 : Unsupported Media Type

416 : Requested range not satisfiable

417 : Expectation Failed

5** Server Error

500 : Internal Server Error

501 : Not Implemented

502 : Bad Gateway

503 : Service Unavailable

504 : Gateway Time-out

505 : HTTP Version not supported

_____________________________________________________________________

HTTP Return Code Chinese Interpretation

2xx is normal.

200 OK; request completed. (This is usually the case.

201 Normal; following POST command.

202 OK; accepted for processing, but processing is not yet complete.

203 Normal; partial information-The information returned is only partial.

204 OK; no response-The request was received, but there is no information to send back.

3xx redirects

301 Permanent redirection-The requested data has a new location and the change is permanent.

302 Temporary redirection-The requested data temporarily has a different URI.

303 See Other-The response to the request can be found under another URI and should be retrieved using the GET method.

304 Not Modified-The document was not modified as expected.

305 Use Proxy-The requested resource must be accessed through the proxy provided in the Location field.

306 Not used-no longer used; keep this code for future use.

4xx page error

400 Error Request-There is a syntax problem in the request or the request cannot be satisfied.

401 Unauthorized-The client is not authorized to access the data.

402 Payment Required-Indicates that the billing system is active.

403 Forbidden-Access is not required even if authorized.

404 Not Found-The server could not find the resource given; the document does not exist.

406 Not Acceptable-Based on the "Accept" header sent in this request, the resource identified by this request can only generate response entities with a content characteristic of "Not Acceptable."

407 Proxy Authentication Request-The client must first authenticate itself using a proxy.

410 The requested page does not exist (permanent)

415 Unsupported media type-The server refuses to service the request because the format of the requesting entity is not supported.

5xx server error

500 Internal Error-The server was unable to complete the request due to an unexpected condition.

501 Not Executed-The server does not support the requested tool.

502 Error Gateway-The server received an invalid response from an upstream server.

503 Unable to get service-The server cannot process the request due to temporary overload or maintenance.

100 Continue

Indicates that the client should continue the request. Echo is used to notify the client that the request has been received and has not been rejected by the server.

The client should continue sending the rest of the request data or the request has been completed, or ignore the loopback data. The server must send

The last echo follows the request.

101 Switching Protocols

The server changes the application protocol of the current connection through the Upgrade header information according to the request of the customer service end. the serv will immediately change that protocol based on the Upgrade head

When the 101 echo ends with a blank line.

Successful

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

200 OK

Indicates that the customer service request has been successfully received, resolved, and accepted.

201 Created

The request has been completed and a new return resource created. The resource being created may be a URI resource, usually specified in the Location header. Loopbacks should contain one entity of data

It also contains resource characteristics and location to select the appropriate method by the user or user agent. The entity data format is specified by the coal type, i.e. the content-type header. First server

The specified resource must be created before returning a 201 status code. If the action is not executed immediately, the server should return 202.

202 Accepted

The request has been accepted for processing. But the process is not complete. Requests may or may not be complied with because processing may be denied during actual execution.

203 Non-Authoritative Information

204 No Content

The server has accepted the request and there is no need to return entity data, it may need to return updates. Echoes may contain new or updated information presented by entity-headers.

205 Reset Content

The server has accepted the request and the user agent should reset the document view.

206 Partial Content

The server has accepted the portion of the GET request resource. The request must contain a Range header to indicate that the fetch range may have to contain an If-Range header to qualify the request.

Redirection

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

300 Multiple Choices

The requested resource conforms to either presentation.

301 Moved Permanently --redirect

The requested resource has been assigned a new URI.

302 Found

Temporary files requesting resources through different URIs.

303 See Other

304 Not Modified

If the client has completed a conditional request and the request is allowed, but the document has not changed, the server should return a 304 status code. 304

The status code must not contain the body of the message, and thus usually ends with the first blank line after a header field.

305 Use Proxy

The requested resource must be accessed through the proxy specified by the Location field. The Location resource gives the URI of the proxy.

306 Unused

307 Temporary Redirect

Client Error

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

400 Bad Request

The server could not understand the request because of incorrect syntax.

401 Unauthorized

If the request requires user authentication. The echo should contain a WWW-Authenticate header field indicating the permissions of the requested resource.

402 Payment Required

reservation status code

403 Forbidden

The server accepts the request but is denied processing.

404 Not Found

The server has found any resources matching Request-URI.

405 Menthod Not Allowed

Request-Line The requested method is not allowed through the specified URI.

406 Not Acceptable

407 Proxy Authentication Required

408 Reqeust Timeout

Customer service did not submit any requests within the server wait time.

409 Conflict

410 Gone

411 Length Required

The server refuses to accept the request without defining the Content-Length field.

412 Precondition Failed

413 Request Entity Too Large

The server refuses to process the request because the requested data exceeds the range that the server can process. The server may close the current connection to prevent the client from continuing the request.

414 Request-URI Too Long

The server refused to service the current request because the URI was longer than the server could resolve.

415 Unsupported Media Type

The server refuses to service the current request because the requested data format is not supported by the requested resource.

416 Request Range Not Satisfialbe

417 Expectation Failed

Server Error

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

500 Internal Server Error

The server encountered an exception that prevented the execution of the current request

501 Not Implemented

The server has no action to complete the request.

502 Bad Gateway

503 Service Unavailable

The server cannot process the current request because of temporary file overload.

504 Gateway Timeout

505 Http Version Not Supported

"HTTP return code what" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report