Fixing That 4xx Error: A Guide to Common 4xx Status Codes (2024)

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (1)

From a user’s perspective, a 404 page is probably the most common 4xx error. Have you ever stumbled upon one in search results or on a website?

It’s not the best experience, I know, but it’s how servers inform you that your desired web page doesn’t exist, and it’s unknown whether it will be accessible in the future.

4xx error status codes mean there is an issue on your side (the client side) that must be properly addressed. It’s serious stuff because if you fail to remedy it, your website’s indexability and performance will suffer.

The good news is that the problem can be easily detected and fixed.

I’ve frequently dealt with 4xx errors as part of technical SEO audits throughout my entire SEO career, so you’re in good hands.

In this article, I’ll explain the most common 4xx HTTP status codes, why they occur, what they mean, and how they impact your on-page and off-page SEO. On top of that, I’ll show you how to fix them.

Let’s get to it …

What Is a 4xx Error?

A 4xx error is a website error that will occur when something prevents a server from returning the destination URL for a webpage. One of these errors commonly means that the page is no longer available or restricted. If the page is still publicly available, typos are usually the cause.

The last two digits of the HTTP status codes differ and explain why your website’s URL can’t be shown. For example, 404, a well-known 4xx status code, means “the page is not found,” and it’s unknown whether or not it will be accessible again. A 410 error means the page is permanently gone.

Below, I’ll briefly explain the most common 4xx errors so you’ll know how to interpret them and whether you need to take any action (so they don’t wind up as an eyesore on your SEO report).

Common 4xx Error Codes to Learn

Various 4xx status codes indicate errors on a client’s side. However, most of them, like the 402 response code, rarely occur. Therefore, below I’ll focus on the common ones you’ll likely encounter while working on your website or clients’ websites.

If you don’t have time to read the entire article, I’ve summarized 4xx error codes in the table below.

4xx Status CodeWhat It Means
400 Bad RequestThe server can’t understand a client’s request because it’s wrong. Check your code, request headers, URL parameters, and request body to identify and correct the issue causing the error.
401 Unauthorized RequestA client tries to access a resource, such as a secure web page, without providing proper authentication credentials.
403 ForbiddenThe server understands the request but does not allow the client to access it, even with valid credentials.
404 Not FoundThe requested resource has been moved or deleted, and it’s unknown whether or not it will be available in the future.
410 GoneUnlike 404, this status code indicates that the requested resource is permanently gone.

400 Status Code: Bad Request

A “400 Bad Request” status code is a response from a server to indicate that the request sent by the client (your browser) is malformed or invalid.

The server can’t understand or process the request because it doesn’t meet the server’s expectations or requirements.

This error may occur if the request has incorrect syntax, such as missing required headers, invalid HTTP methods, or improperly formatted URLs.

401 Status Code: Unauthorized Request

A “401 Unauthorized” status code indicates that the client making the request has not been authenticated or lacks the necessary access credentials.

In other words, the server tells the client that it needs to provide valid credentials (username and password) to access the resource, but the credentials are either missing or invalid.

403 Status Code: Forbidden

Unlike a “401 Unauthorized” status code, which implies that the client may gain access by providing valid credentials, a “403 Forbidden” status code means the server understands the request but does not allow access, even with proper credentials.

If you encounter a “403 Forbidden” response while browsing a web application, you won’t get access to it, and there is no immediate action you can take to gain it. I recommend contacting the server provider to inquire about the specific access restrictions.

404 Status Code: Not Found

“404 Not Found” often occurs when a user wants to access a page that no longer exists, a URL is mistyped, or a resource has been moved or deleted (sometimes in an attempt to resolve a keyword cannibalization issue).

I’ve encountered this 4xx error many times when developers accidentally deleted live website pages or when content managers accidentally made mistakes while editing pages in WordPress.

Unless you run site audits daily, it’s unlikely to discover this error immediately. However, it can seriously harm user experience.

410 Status Code: Gone

A “410 Gone” status code indicates that the requested resource has been intentionally and permanently removed or deleted and will not be available again.

I’ve used the “410 Gone” status code before doing website migration from a subdomain to a subfolder.

Some URLs were unnecessary, so we requested their temporary removal via Google Search Console and changed the status code to “410 Gone” to inform search engine bots that the pages were gone permanently.

418 Status Code: I’m a Teapot

I had to write about the 418 status code, although you should know up front that it was developed as an April Fool’s joke and has no practical application.

The server can return the “418 I’m a Teapot” error status code when a client requests to “brew coffee, yet it’s a teapot.” In other words, it’s a server’s response to an inappropriate request.

Although 418 can undoubtedly bring a smile to developers’ and users’ faces, it doesn’t have any practical usage compared to other 4xx error status codes.

While there are several other 4xx codes, you’ll won’t typically need to address them during your SEO work.

4xx Error Codes and Their Impact on SEO

Search engine bots regularly crawl your website pages and record their status codes to understand whether they are accessible and healthy.

As you know, the “200 OK” status code means all good. Your web page has no issues and can be shown in search results. On the other hand, displaying 4xx error status codes over time can cause pages to drop from the Google index.

Besides page removal from organic search results, 4xx errors can cause even more problems to your website, such as the following:

1. Decreased Crawlability

There is no point in wasting Googlebot’s crawl budget on broken pages.

If search engine bots regularly encounter the same 4xx status code on a web page, they’ll decrease its crawlability. This means that the affected page won’t appear in organic search results, which will eventually cause a loss of organic website traffic.

2. Rankings Drop

If an essential page of your website returns a 4xx error by mistake, fix it immediately.

According to Google, pages with 4xx HTTP status codes are unhelpful for users. Therefore, they’ll slowly lose their rankings in organic search results and eventually be excluded from the Google index.

3. Bad Signals for Quality

Besides 4xx, how will Google understand that the web page is unhelpful for users? A high bounce rate and a small average session duration per user indicate poor web page quality.

If users click on an outbound link in a blog post and land on a page with an error message, they’ll simply leave it. Sooner or later, Google will notice this behavior and exclude the page from the index.

4. Negative User Experience

If users regularly encounter 404 pages on your website, it will negatively impact their on-page experience. This leads to higher bounce rates, lower engagement, and, ultimately, a lower SEO ranking. Search engines, like Google, favor websites that provide a positive user experience.

5. Lost Backlinks

If external websites link to web pages that return 4xx errors, you risk losing valuable link juice. Backlinks are an important SEO factor, and if the pages they link to are no longer accessible, it will harm your website’s authority and rankings.

If you want to discover 404 pages other websites link to, I recommend running a backlink audit for your website.

4xx Status Codes vs. 5xx Status Codes

There is another group of HTTP status codes that can be detrimental to your website’s SEO and your ability to make money blogging: 5xx server errors.

Unlike 4xx status codes, 5xx errors don’t happen on the client’s side (your browser). It means you can’t fix them on your own. Instead, these are errors on the server’s side, which a server returns when it can’t carry out the request.

Just like a 4xx error, I’m pretty sure you’ve stumbled upon a server error before, but here are the most common 5xx errors that might occur on your website.

5xx Status CodeWhat It Means
500 Internal Server ErrorSomething has gone wrong on the server, but the server can’t provide more specific information about the error.
501 Not ImplementedThe server doesn’t understand the request or can’t fulfill it.
502 Bad GatewayOne server that acts as a gateway in a chain of servers gets an invalid response from another server.
503 Service UnavailableThe server is temporarily unable to handle the request. It is often used when a server is undergoing maintenance or experiencing high traffic and can’t respond to the request at the moment.
504 Gateway TimeoutSimilar to a 502 error, a 504 error happens when a server acting as a gateway does not get a timely response from the server it was routing to. It indicates a timeout in the communication between servers.

Why Are 5xx Errors Bad for Your SEO?

Because they slow down your website’s crawling. This means in time Google will drop them from the index.

If your website has 5xx errors, you’ll find them in Semrush’s Site Audit report. I frequently use Semrush for various marketing needs, such as keyword research, SEO competitor analysis, or tech SEO audit. If you’re interested in learning more, take a look at my Semrush review.

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (2)

How to Fix 4xx Error Codes

Fixing 4xx HTTP status codes is easy if you know how to do it.

If your website or clients’ websites have many 4xx errors, I recommend adding them to the technical SEO KPIs list.

I’ve tried many ways to discover 4xx errors, including Google Search Console, Semrush, Ahrefs, Screaming Frog, and cURL for HTTP requests.

Here are the three easiest methods:

1. Find 4xx Error Codes

You can see all 4xx status code issues in the Page Indexing report if you have a verified Google Search Console account.

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (3)

Alternatively, I recommend using Semrush Site Audit. It’s a go-to solution if you manage clients’ websites or don’t have access to Google Search Console.

If any issues are detected, you’ll find them in the Site Audit > Issues report.

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (4)

2. Replace or Remove Broken Links

I check my Google Search Console account daily to quickly discover critical issues on my website, especially if it’s an essential page in terms of traffic, rankings, or e-commerce value.

If a 404 error occurs due to a mistyped URL, the internal or external link will be broken. In this case, you can do the following:

  • Manually fix the URL if it’s an external link.
  • For internal pages, manually fix the URL, if a proper web page exists, and set a 301 (permanent) redirect from the broken URL to the correct one.

If you intentionally want to exclude certain pages from organic search results, apply the “410 Gone” status code. In this case, you must remove all internal links pointing to this URL. Otherwise, users can accidentally stumble upon this page.

3. Create Custom 404 Pages

There is another way to handle the 404 error.

If you don’t have a relevant page to redirect users, you should create a custom 404 page. This page helps users understand where they are on your website and encourages them to explore it further.

Here is what a Semrush 404 page looks like. Even if users accidentally get lost, a call to action button redirects them to the home page.

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (5)

4xx Error Remedies to Improve Your Website’s Technical SEO

Even though 4xx errors won’t break your website in the short term, the long-term consequences are detrimental, including decreased crawlability, exclusion from Google’s index, and loss of organic search traffic.

That’s why it’s so important to keep an eye on the HTTP status codes and the overall health of your website using SEO tools like Semrush.

Register for a 7-day free Semrush trial to find and fix all HTTP status codes.

Fixing That 4xx Error: A Guide to Common 4xx Status Codes (2024)

FAQs

How to fix 4xx status code? ›

How to Fix a 4XX Error?
  1. Check the spelling of the URL, have you mistyped it? ...
  2. Clear your cookies and cache. ...
  3. It could be the receiving server. ...
  4. Refresh the page. ...
  5. Try a site search. ...
  6. Check out other websites. ...
  7. If you are trying to login to a protected area, ensure you are using the correct URL.

How to fix blocked due to other 4xx issue? ›

3 How to Fix the 'Blocked Due To Other 4XX Issue' Error
  1. 3.1 Set up a 404 Redirect. If you're getting a 404 error, you can set up a redirect so that visitors are taken to another page on your website instead. ...
  2. 3.2 Check Your . htaccess File. ...
  3. 3.3 Check Your Robots. txt File. ...
  4. 3.4 Contact Your Web Hosting Provider.

How to handle 4xx errors? ›

As a general rule, you should never retry a request on a 4xx error before attempting to fix the issue first.
  1. The 4xx errors indicate a problem with the call not the service.
  2. The most common one is 400 and typically means there is an invalid parameter like the reservation ID or property ID is missing.
Apr 29, 2024

Does a 404 error mean I was blocked? ›

“Not found (404)”

The 404 HTTP status code signals that the server couldn't find the requested page because it no longer exists on your website. Although it sounds scary, sometimes setting up a 404 status code may result from optimizing orphan or duplicate content on your website.

What is 4xx network error? ›

This group of HTTP status codes indicates that the request for the resource contains bad syntax or cannot be filled for some other reason, presumably by fault of the client sending the request.

What is the 4xx class of status code? ›

The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition.

How do you resolve error in code? ›

To fix syntax errors, you need to review your code carefully and follow the syntax rules of your language. You can also use a code formatter or linter to automatically correct or warn you about syntax errors.

Are 4xx errors retryable? ›

4xx codes mean that an error has been made at the caller's side. That could be a bad URL, bad authentication credentials or anything that indicates it was a bad request. Therefore, without fixing that problem, there isn't an use of retry.

What is the most common error correcting code? ›

The most well-known Hamming code is the (7,4) code which uses a 'generator matrix' to create three parity bits added to our four bits that make up the message, and is a code that can detect and correct single errors.

How to fix 4xx error in Google Search Console? ›

Identify the Specific 4xx Error

Head to your Page Indexing Report via Google Search Console and identify all URLs under the Blocked Due to Other 4xx Issue section. Once you have a list of these URLs, try to access them yourself using your browser or a tool like ScreamingFrog to crawl them.

Do 404 errors go away? ›

Once there is content on the page, the 404 error will go away. Because the website server can now locate resources at that URL for serving to users. You might be able to populate content on the page by restoring backup content. Or you can always create new content by adding to the page.

How do I get rid of 404 error on Chrome? ›

Therefore, we recommend trying these simple steps before exploring other methods to troubleshoot the issue:
  1. Restart your browser. Try closing the current window and opening a new one. ...
  2. Clear cache. ...
  3. Double-check for mistyped characters. ...
  4. Use another device. ...
  5. Switch to the Incognito window.
Apr 5, 2024

What 4xx status code means that a URL was explicitly removed and will not come back? ›

410 status code: Gone

The HTTP status code 410 , "410 error" for short, indicates that the requested URL was permanently removed. This means the URL existed before, but it was explicitly removed and will not come back. Search engines are quick to remove URLs from their index when the 410 error is returned.

What is error code 4xx in API? ›

It indicates that the URL you used in your request doesn't exist on the API server, or origin server. While this is a 4XX error, which usually means something on the client-side is wrong, this can also indicate a server problem.

How to fix 404 error? ›

Here are some different methods you can try to fix a 404 error as a web user:
  1. Refresh the page. ...
  2. Check the URL. ...
  3. Use a search engine. ...
  4. Try to access the webpage from a different device. ...
  5. Clear your cache and delete cookies. ...
  6. Create a 404 page. ...
  7. Create a redirect. ...
  8. Correct the link.
Feb 13, 2024

What is 4xx error in SEO? ›

4xx errors (also referred to as 400 errors) occur when a page that once existed on a website is no longer live and has not been redirected elsewhere. These HTTP 4xx status codes (such as a 404 error) can also impact SEO. There are a number of ways search engines view and deal with pages displaying 4xx error codes.

Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5868

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.