We often encounter 404, 500, 302 and other hints, what do they mean? In addition to these common status codes, what are some of the status codes that we have not encountered but are likely to appear? Here I made a summary, share with you.
Common HTTP errors can be grouped into the following four categories. Each class is subdivided into many small errors. When you do not open the site or open the site error, first check the site you entered is wrong, check the network is a problem or whether DNS can be resolved. When you are sure there is no problem, look at the following HTTP common error analysis:
1, 400 error
problem Reason:
The page you are trying to open does not exist or the authentication information you have filled out is incorrect.
Workaround:
Re-try to submit the work order after the error is still wrong.
2, 401 Error
the most common error tip: 401 Unauthorized
Problem Reason:
The Web site returned an HTTP 401 error when you tried to access a restricted page without authorization. Error logon attempts are the main cause of this error.
Workaround:
Contact the webmaster to obtain the correct account.
Submit the work order to the technician for processing.
3, 403 error
the most common error tip: 403 Forbidden
Problem Reason:
Typically, a Web site does not have a default home page binding or a default home page error.
Workaround:
You check your program's default home page is which, the background to add the default page can be.
4, 404 error
the most common error tip: 404 Not FOUND
Problem Reason:
When you open a Web site, you cannot find the file (that is, the page) that you requested, which may have been moved somewhere else or simply does not exist.
Solution:
(1) Please login FTP to check whether the file or Web page does not exist, the missing Web page files restored to the correct location.
(2) Submit a work order to restore your data for one day of the week.
5, 500 error
Most common error tips: SERVER error
Problem Reason:
(1) server-side web site design problems and the server did not open detailed error prompts.
Workaround:
(1) Download the program to the local, and then check the program, upload the complete correct Web site program.
(2) Submit the work order contact technician to handle.
6, 503 Error
Problem reason
The application pool is shut down or the traffic is run out due to the incompatibility of program Web program configuration.
Workaround:
(1) Linux virtual host Restart the site through the background can return to normal. If not, please submit your work order.
(2) Widows Virtual Host Please submit the work order contact technician to handle.
HTTP Status Code Summary description
-----------------------------------------------------------------------------------------------------------
Successful 2XX successfully processed the requested status code.
200 the server has successfully processed the request and provided the requested Web page.
204 The server successfully processed the request, but did not return any content.
REDIRECT 3XX use redirection not more than 5 times per request.
301 The requested Web page has been permanently moved to the new location. When URLs change, use 301 code. A new URL is saved in the Search engine index.
302 The requested Web page is temporarily moved to a new location. The original URL is saved in the Search engine index.
304 If the page has not been updated since the request was last requested, use 304 code to tell the search engine robot to save bandwidth and overhead.
The client error 4XX indicates that the request could be wrong, preventing the server from processing.
400 the server does not understand the syntax of the request.
403 The server refused the request.
404 the server could not find the requested Web page. Pages that do not exist on the server often return this code.
The server returns this response after the 410 requested resource has been permanently deleted. The code is similar to the 404 (not Found) code,
However, it is sometimes used to replace the 404 code in cases where the resource existed before and now does not exist. If the resource has been permanently deleted, you should use 301 to specify a new location for the resource.
Server error 5XX indicates that the server encountered an internal error while processing the request. These errors may be errors on the server itself, not the request.
500 the server encountered an error and could not complete the request.
503 Server is currently unavailable (due to overloading or downtime maintenance). Usually, this is only a temporary state.
Detailed decomposition:
2XX success
200 normal; The request is complete.
201 Normal; Immediately following the POST command.
202 normal; Accepted for processing, but processing has not yet completed.
203 normal; Partial information-the information returned is only part of the message.
204 normal; No response-received request, but no information to echo.
3XX redirect
301 Moved-The requested data has a new location and the change is permanent.
302 found-The requested data has a different URI temporarily.
303 See other-you can find a response to a request under another URI, and you should use the Get method to retrieve the response.
304 Not modified-the document is not modified as expected.
305 Use proxy-the requested resource must be accessed through the agent provided in the Location field.
306 unused-is no longer in use, and retains this code for future use.
Error occurred in 4XX client
400 Error request-There is a syntax problem in the request or cannot satisfy the request.
401 not authorized-the client is not authorized to access the data.
402 Payment required-Indicates that the billing system is valid.
403 prohibited-access is not required even with authorization.
404 Not Found-the server cannot find the given resource; The document does not exist.
407 Proxy authentication Request-The client must first use the proxy authentication itself.
415 Media type not supported-server denial of Service request because the format of the request entity is not supported.
Error occurred in 5XX server
500 INTERNAL Error-The server cannot complete the request because of an unexpected condition.
501 not executed-the server does not support the requested tool.
502 Error Gateway-server received an invalid response from the upstream server.
503 cannot get service-the server cannot process the request due to temporary overload or maintenance.
504 Gateway Timeout
When a server working as a gateway or proxy attempts to execute a request, it fails to receive a response from the upstream server (the server identified by the URI, such as HTTP, FTP, LDAP), or a secondary server (for example, DNS) in a timely manner.
Note: Some proxy servers return 400 or 500 errors in DNS query timeout
505 HTTP Version not supported
The server does not support, or the HTTP version used in the request is denied. This implies that the server is unable or unwilling to use the same version as the client. The response should contain an entity that describes why the version is not supported and which protocols the server supports.
506 Variant Also negotiates
Extended by the Transparent Content negotiation Protocol (RFC 2295), which represents an internal configuration error on the server: The requested negotiation meta resource is configured to use itself in transparent content negotiation, so it is not an appropriate focus in a negotiation process.
507 Insufficient Storage
The server cannot store the content required to complete the request. This situation is considered to be temporary. WebDAV (RFC 4918)
508 Loop Detected
An infinite loop occurred in the server discovery request
509 bandwidth Limit exceeded
Server reaches bandwidth limit. This is not an official status code, but it is still widely used.
510 Not Extended
The policies required to get resources are not unsatisfied. (RFC 2774)
How to handle common errors
500 error
500 error is the webmaster often encountered problems, on my experience, reasons and solutions summed up as follows:
1, running too many users, the server caused by too much pressure, the server can not respond, then reported HTTP500 error.
This reason is the website report 500 error Most main reason, many websites why suddenly report 500 error (Service unavailable)? 90% is due to the space pressure is too large, beyond the space quotient set by the ceiling caused.
Encounter this problem, it is best to find the first time space business after-sales service, they will generally help you recycle the application pool, the problem is solved. If you do not find after-sales service, you can own in the space management background, to find the "Recycle application Pool" that project, their own manual execution can be. However, some space management backgrounds do not provide the service.
2. If the possibility of the 1th is ruled out, a big reason is that there are problems in the procedure.
Can do a simple test page to see if it can run successfully, and then detect the error of the page, so targeted to modify.
The place to do the association does not have to do the association, then reported HTTP500 error. The problem is solved by manual or automatic association.
3, if the test in the operation of the need to insert data into the database, if the large amount of data in the case of the table space is full, or buffer pool is not enough to meet the data access, etc., may lead to HTTP500 errors.
The solution is to adjust the database, modify the connection pool size and so on, according to individual specific circumstances to amend.