What Are Http Status Codes? What are their meanings?

The user logging into your e-commerce site sends a request to the website server via the browser. The response to this request is sent to the user’s browser screen as the relevant page of the site. Communication between the user and the server is provided by HTTP codes. Sometimes only one code appears in front of the user. In this case, the user will have a problem because he cannot find what he is looking for. But the real problem is you as the site owner. For this reason, you need to know the HTTP status codes and prevent users from encountering error codes by solving possible problems.

What are HTTP Status Codes? What are their meanings?

HTTP, which is the abbreviation of “Hyper Text Transfer Protocol”, finds its equivalent in Turkish as “Hypertext Transfer Protocol” or “Hyper Text Transfer Protocol”. Its universal usage is HTTP, and it is a standard protocol that defines the format and delivery of messages on the web.

HTTP status codes, on the other hand, are 3-digit numbers that describe what happens in the communication process between the client, that is, the web browser and the server. These codes are generally considered to be error-related. But the codes report the status of the transfer process between the server and the client. So not only bad ones but successful transactions also have HTTP status codes.

What Are HTTP Status Code Classes?

HTTP status codes are divided into 5 different classes according to the status of the transfer process. Classes are created based on the first digits of the codes. For example, the 404 code is in the 4xx class. The number of codes in each class differs. The names that the classes take due to the role they play are as follows:

  • 1xx: Information request
  • 2xx: Success
  • 3xx: Redirect
  • 4xx: Client error
  • 5xx: Server error

1xx

It is a class of HTTP status codes that indicates that the request sent by the user, that is, the browser, has reached the server and that the process related to the request has started. The codes in this class are:

  • 100 – Continue
  • 101 – Change protocol
  • 102 – Transaction

2xx

It is the class that contains the codes that indicate that the request from the client reaches the server, is understood by the server, and is successful. The codes in this class are as follows:

  • 200 – Pass/OK
  • 201 – Created
  • 202 – Accepted/Confirmed
  • 203 – Insufficient information
  • 204 – No content
  • 205 – Redo content
  • 206 – Partial content
  • 207 – Multiple statuses
  • 210 – Different content

3xx

It is a class of HTTP status codes that are displayed in case of a redirect and indicate that the information to be accessed has been moved to another source. The codes in the 3xx class can be listed as follows:

  • 300 – Multiple options
  • 301 – Permanent redirect
  • 302 – Temporary redirect
  • 303 – See others
  • 304 – Not Updated/Modified
  • 305 – Use proxy
  • 307 – Temporary redirect

4xx

HTTP status codes, which are shown when the website or page that is the subject of the request sent by the browser cannot be reached and indicates that the request cannot be fulfilled, is included in this class. The codes in the 4xx class are listed as follows:

  • 400 – Bad/Bad request
  • 401 – Authority
  • 402 – Payment required
  • 403 – Forbidden/Access permission issue
  • 404 – Not Found
  • 405 – Disallowed method
  • 406 – Unacceptable
  • 407 – Authorization required via proxy
  • 408 – Timeout
  • 409 – Conflict
  • 410 – Resource no longer exists/Permanently unavailable
  • 411 – Length (content size) required
  • 412 – Prerequisite failed
  • 413 – Too much data entered
  • 414 – Request URL too large
  • 415 – Unsupported media type
  • 416 – Resource partial invalid
  • 417 – Request failed
  • 422 – Unworkable entity
  • 423 – Locked
  • 424 – Failed to commit resource
  • 425 – Too early
  • 426 – Upgrade required
  • 428 – Prerequisites required
  • 429 – Too many requests
  • 451 – Unavailable for legal reasons

5xx

It is the class of codes shown when the user request reaches the server successfully but the request cannot be fulfilled due to server-related problems. The 5xx HTTP status codes are:

  • 500 – Server error
  • 501 – Request not implemented
  • 502 – Bad gateway
  • 503 – Server unavailable
  • 504 – Gateway timeout
  • 505 – HTTP version not supported
  • 507 – Insufficient storage
  • 509 – Bandwidth limit exceeded
  • 511 – Network authentication required
  • 521 – The web server is down

What Are Http Status Codes

What are the Most Common Status Codes?

As seen above, there are many HTTP status codes. But some are more common. These common HTTP status codes have a serious impact on your e-commerce site.

200 Status Code (Success)

If a 200 status code is being sent from the server to the browser, everything is fine. This is the most ideal status code and the user will view your site as it should.

301 Status Code (Permanent Redirect)

301 is one of the most important status codes. It is a code that allows the user to automatically see the new page if the page at a URL is permanently redirected to another page. The content of the new 301-redirected page will be related or similar to the old URL, thus minimizing visitor loss.

302 Status Code (Temporary Redirect)

It is the code that allows a page under testing or maintenance to be temporarily redirected to another page. When a product is out of stock on e-commerce sites, a 302 status code is used to show the user the page of another product related to the product in question until the stocks are updated.

403 Status Code (Access Permission Issue)

In response to the request sent by the browser to the server in order to reach a certain page, the 403 status code is used to express that the page in question is banned or that access to the relevant page is not allowed.

404 Status Code (Not Found)

404 is one of the most common error-reporting HTTP status codes users encounter. This code indicates that the requested page is not found on the requested server. When the URL of a page is changed or the related page is deleted, a screen with the 404 code is sent to the user.

Status Code 410 (Permanently Unavailable)

The 410 status code, like 404, indicates that the page to be accessed is not found on the server to which the request is sent. The difference is that pages with status code 410 are permanently deleted and will not come back. Pages with 404 status codes are often updated and re-accessible. As the pages with the code 410 are completely deleted, they are removed from the search engine index in a short time.

500 Status Code (Server Error)

A 500 status code indicates that something is wrong with the server and there is a server-related problem. It is not possible to access the relevant page until the server error that prevents the page from being displayed is resolved.

503 Status Code (Server Unavailable)

Temporary problems on the server are reported with a 503 status code. Servers are temporarily unavailable, mostly due to overload and server maintenance. In addition, cyber attacks against bandwidth can cause this situation.

Which Codes Are Important for Your E-Commerce Site?

HTTP status codes are very important for your e-commerce site. In particular, you should definitely not allow codes that report errors. Because when users cannot reach a page, they leave the site. This means a loss of customers for you. To avoid this situation, you should use redirect codes such as 301 and 302. For a code such as 404, you can make a special page design and offer alternatives to those who receive these errors, so that they remain on the site.

The infrastructure of your e-commerce site is also of great importance in order to prevent visitors from encountering error codes and to perform successful transactions. For example, we, as IdeaSoft, are constantly working and investing in this regard. In this way, we offer an uptime rate of 99.9%. Therefore, when you have a strong infrastructure like IdeaSoft, your site does not display incorrect HTTP status codes and you do not lose customers.

Leave a Reply

Related Articles

Back to top button

We need Your Help!

If you enjoy our content, please support our site by disabling your ad blocker. We depend on ad revenue to keep creating quality content for you to enjoy for free.