HTTP status codes

What are HTTP status codes, what they mean, and how to change the code used for redirects

Premium Feature

This article assumes you are already familiar with shortened links and understand what they are used for.

What is HTTP status code?

HTTP status code is a 3-digit number returned by the server when it responds to an HTTP request. This code tells the client (usually your browser) what the response means and, occasionally, what you should do next.

Known HTTP status codes are arranged in ranges defined by the first digit, namely:

When it comes to shortened URLs, the relevant ones are the 3xx family of codes. They are returned by the redirection engine at once.to to the visitor of the link to instruct them to proceed to another, original URL.

For the sake of this article we’ll only look to these, relevant, 3xx codes.

Why is HTTP status code important?

Different codes from the 3xx family convey a slightly different meaning, which influences how they are handled.

The most commonly used are the following ones:

There are the two most notable effects on short links arising from different redirection codes.

Caching behaviour

Redirections of 301 and 308 are usually cached by the browser, meaning going to the same short URL for the second time will not trigger a request to server. In other words, once your browser knows where to go, it will remember it until the cache expires.

302 and 307, on the contrary, do not get cached and will result in a server request for each redirection.

Practically, this means that using the 301/308 codes may skew your statistics (repeated visits might not be counted) and may not have the desired effect when combined with expiring/future links, passwords, or redirection rules, especially when it comes to probability testing (A/B testing).

Impact on SEO

Another important thing to bear in mind is only the 301 and 308 codes are considered to be “SEO-safe” — because they are permanent. The usage of temporary redirection codes will most likely negatively impact your link ranking by search engines.

Default behaviour

Each short link is initially created with its HTTP status code set to Default.

This default behaviour is as follows:

Customizing the status code

It is possible, however, to explicitly choose any of the above codes using the Link properties dialog:

HTTP status code dropdown in the Link properties dialog.
HTTP status code dropdown in the Link properties dialog.

To revert the link to its default behaviour, select Default from the dropdown.


Tags: , , , , , , , , , ,