Zhost

Details about web page error code! (Code of HTTP)

This post published By Zhost

Details about web page error code! (Code of HTTP)
There are two types of computers on the Internet - one client and another server. The client computer is your personal computer by which we use the Internet, browsing Facebook or read articles from the website. And the servers are those computers, which provide web pages, files to the client computer. Anyway, when you visit a website, the client application (web browser) creates a connection to the server using the HTTP network protocol.
Using this protocol server sends requested data or content (such as web pages and some protocol information) to the client computer. With each response, a specific code also sent to the client, which specifies the result of that request. These result codes are typically in three digit numbers and they have different categories. Although not every time browser shows you the 'Result Code', I'm sure you'll see some code such as 404 error code(this means the page is not found). There are also many more error codes, the list of which I published below with explanation.

1. Code 100-199; Information status
2. Code200-299; Succession status
3. Code 300-399; Redirection Status
4. Code 400-499; Client Error
5. Code 500-599; Server error

So you can see the number of error codes, but only a few of these codes are usually seen. During the page loading, there may be many error codes in the client, but they are kept hidden to the user, however, see the following explanations:

HTTP 200 'OK'
During every successful transmission, the server sends this HTTP code to the browser. This means that the content that is requested by the browser, has been successfully sent from the server. This 200 code has been loaded before loading the page but the browser does not show you this code. If you have successfully loaded this page, this means that the server has been sent 200 codes to your browser.
There are a few codes as well as 200 codes, for example, code 201 means the request has been successful and the new page has been created. 202 means that the server has received the request from the client and understood the request. Code 204 means the request has succeeded, but there is no need to back up any data. 205 means Reset Request. In 205, if a form is filled in the browser, the browser will reset the form's data. When a web page uses the caching system, only certain parts of a page are requested from the web browser, therefore server receives data from those part, the rest of the page content is loaded from the cache. 206 codes are sent when loading certain parts.

HTTP Error 404 'Not Found'
Code 404 means that the web server did not find the requested page, file, or separate content based on the request from the client. However, it means 400 errors, but the network connection between the client and the server was correct, the connection was successful, but the requested page is not on the server! This error occurs when you enter a wrong URL in the browser or the page is deleted from the site or the page transfers to a different URL without using redirection. The user must change the URL to fix this problem.
Some common error codes are also, 400, 401, 403; Here is 400 meaning bad requests. The server sent this code if the client had the error of the protocol data. For many times your server is unable to send a request properly from the server to the server, or if the data is copied, 400 respondents code is sent. 401 is unauthorized error code; Here the browser requests the server for any resources that may be on the server, but there is no permissions to access it. Of course, the client must first login to the server or enter the valid username and password, only then the resource will be accessible.

HTTP Error 500 'Internal Server Error'
When the web server accepts a valid request from the client but can not process it, the code of 500 error is displayed. It may be a problem of server side, maybe the problem of processing of RAM, or storage problem, for which the request is currently unable to handle. When the site or server admin does not fix this problem, it will not be okay.

HTTP 301 'Moved Permanently'
When a URL is requested from the client, but the server redirects the client to another URL, this system is called HTTPS redirection. Where the client creates a new request and the server provides resources from a new location. Web browsers can automatically accept 301 redirect requests and can send new requests hereafter users do not have to take any action!
302 redirect code is similar to code 301, but here is shown a temporary redirection. When the admin works on the site, 302 redirect codes are sent to show the under construction page, where a temp page loads in the browser.