Daniel De Reuck • 12 Nov 2021

Understanding Common 4xx HTTP Errors and How to Fix Them

Understanding Common 4xx HTTP Errors and How to Fix Them

Website up, traffic growing, everything running smoothly—until one of those pesky error messages pops up. If you’re a website owner or digital entrepreneur in Ghana, these 4xx client-side errors can be frustrating, especially when you’re not sure what they mean or how to fix them.

These errors don’t just annoy visitors—they can affect your site’s credibility and user experience. Thankfully, most 4xx errors are easy to resolve if you understand what’s causing them.

In this guide, we’ll walk you through the most common 4xx status codes, explain what they mean, and show you simple ways to fix them without calling in tech support. Let’s start by looking at what separates client-side errors from server-side ones.


Client versus server errors

The HTTP error codes in the 4xx category are considered to be client-side errors, while errors in the 5xx category are considered server-related errors. Knowing the difference can guide you in how to address the issue from your side, if at all possible, whether you’re the client or have someone trying to access your website.

If you’re not familiar with some of the terms you can check out our website glossary blog post that explains common web hosting jargon.


Error code 400: Bad Request

A bad request tells us that there was a bit of a mix-up in the request sent by the client or web browser. Generally, the server will be unable to process the request because of a syntax error, but it can also be because the client is trying to send a file that is too large.

Some of the other possible reasons for an error code 400 could be the URL entered is invalid, the routing used by the client is being read by the server as malicious or suspicious, or your internet connection could be acting up.

Fix

As a client, you can fix this by ensuring your connection is stable. You can also clear your cache, try a different browser, or ensure the URL you entered is correct.


Error code 401: Authorization Required

As the name infers, this client error code appears when you try to access a webpage that you do not have the authority to enter, like the admin area of someone’s website. It can also pop up if you enter the wrong credentials on a login attempt.

Think of it as security at the door asking for ID and then refusing to let you inside. It could be that your ID was invalid for some reason, or you could be banned from the venue (server, in this case).

Fix

To fix this you can start by checking the URL since as a client you may be able to access some pages on the domain, but that specific URL requires some authorization.

Another reason could be that the cookies (tiny bits of data) stored are causing an issue with improper authentication as they are either invalid or corrupted. Simply clear the saved cookies for that domain or all cookies for that particular fix.


Error code 403: Forbidden

403 Forbidden error

A hard “no” from server to client. This error usually means the option of authorizing is not available; the webpage is simply not accessible for web browsers or clients. Basically, the security at the door isn’t even checking ID.

This means the server knows what you’re asking, but just can’t let you in. This error usually serves as an extra layer of protection for your website, like if you want to keep certain resources private or secure.

Fix

If it’s a page which clients should be able to access, you can start by checking if the page is actually indexed in your cPanel.

All you need to do is navigate to the Advanced menu section and select Index manager from there.

Another fix could be to run a malware scan as those little buggers can corrupt the .htaccess file, which is your (standard) server configuration file.


Error code 404: Not Found

A 404 error code on HOSTAFRICA
A 404 error code on HOSTAFRICA

An error code with which we’re all familiar, especially when recalling memories after a heavy night out at the pub. Error code 404 rears its head when a client tries to access a page that is non-existent.

The most common cause is the URL hasn’t been typed in correctly, but can also pop up if the page has been removed from a website and no redirect has been implemented.

Fix

To patch this error, simply make sure you type the correct URL into the search bar.


Error code 408: Request Time-Out

This error indicates that the request sent by the client was not completed in the specified period of time demanded by the server. So, instead of waiting for the request to be fulfilled, the server closed the connection instead of waiting for the request to be completed.

You’ll often run into this error code if your internet is running slower than usual or the system is buckling under a heavy workload.

Fix

It can also be caused by an incorrect URL, so as with many of the other client error codes, make sure the URL is entered correctly.


Error code 410: Gone

Like the wind. Similar to the 404-error code, but the key difference is that the page or resource will never exist again. There’s no address that the page has be redirected to, and it’s not under construction of any sort. It’s simply gone.

This is in (slight) contrast to the 404-error code which can sometimes mean the page may be accessible in the future at some point. The 410-error code gives a clear message to the user to not search for the page again.

Sometimes this can be caused by a URL being typed incorrectly, but more often than not 410-errors are deliberate and final.


Conclusion

Those are the most common client-side HTTP status responses and what their usual causes are. Despite feeling like a brick wall sometimes when trying to access webpages, error codes provide us with reasonably clear answers as to what the issue is (if you know what each code means, which you do now).

Stay tuned for the most common server-side error codes and how to address them.

Ashwin S.

The Author

Ashwin is a content specialist at HOSTAFRICA, where he's been crafting clear, authoritative copy since 2021. With a background in digital marketing and a passion for impactful storytelling, he turns complex ideas into trustworthy, engaging content. Ashwin writing helps our audience navigate web hosting and cloud solutions with confidence.

Related posts

How to Improve Website Speed and Performance: A Beginner-Friendly Guide

Ashwin S. • 8 Sep 2023 • min

How to Improve Website Speed and Performance: A Beginner-Friendly Guide
12 Things Every Business Website Needs

Ashwin S. • 31 Aug 2022 • min

12 Things Every Business Website Needs
5 Reasons Why Mobile-Friendly Websites Boost Your Brand

Ashwin S. • 8 Jul 2022 • min

5 Reasons Why Mobile-Friendly Websites Boost Your Brand

Need Assistance?

Our local Ghanaian support team
is ready to help.

assistants