How To Fix 400 Error Bad Request

Home » Knowledge Base » Hosting Basics » How To Fix 400 Error Bad Request

400 Error Bad Request

 

Sometimes, when browsing the web, you can stumble upon various status code messages, blocking you from opening various web pages.

Such messages showcase that there is an issue in the communication between your Internet browser (the so-called client) and the server that is requested to display the website back to the client. Although annoying, such error messages are important, as they inform you about various technical issues that you can fix in order to access websites freely.

One such error message is 400 Error Bad Request. If you have stumbled upon such a message while working on your website, or anywhere across the web, it informs you about precise issues that you should fix before accessing the requested online resource. In the following paragraphs, you will read what 400 Error is, what prompts it, and the various methods you can apply to fix it. Also, check out how to fix other error messages such as:

 

What is 400 Error

400 Error, also known as Bad Request is one of the many HTTP status codes. 400 Error message occurs in the event of an invalid client request to the server. More specifically, HTTP Error 400 appears when the server can’t understand and therefore can’t process the request coming from the client side. In such case, instead of returning the requested resource, the server displays the 400 Error bad request.

 

What causes 400 Error

When a request is sent from a client to a web server, this server deciphers this request and sends back information, according to the processed requirements. However, in this communication between a client and a server, issues can appear. In the context of a 400 Error, the server responsible for fetching the requested information can display an HTTP Error 400 message in several cases:

  • Incorrectly typed URL – the typed-in URL might contain characters that the server can’t process such as an extra % sign, or, for example, illegal characters such as { and }.
  • Issues with browser cache and cookie files – sometimes the problem derives from the web browser’s cache files. Although convenient in many situations, the cache can also be a source for technical issues such as Error 400.
  • Issues with Internet browser extensions – Browser extensions can prompt the display of an Error 400 Bad Request message.
  • Issues with local DNS cache – like the browser cache and cookies, the DNS cache can prompt error messages, especially when these files are out of sync with the registered DNS information.
  • Too large file size – a web server can prompt a 400 Error in the case a client is trying to upload a too large file.
  • Server errors – although HTTP Error 400 is a client-side error, sometimes it can be prompted by issues on the server side. Such include server glitches and other general problems.

400 Error can be fixed with several methods listed below.

 

How To Fix 400 Error Bad Request

Now that issues that prompt 400 Error are outlined, you can start applying various methods, so you fix the problem.

 

Method 1: Double Check the URL Address

Since there might be invalid or illegal characters in the URL address, check out whether you have mistyped it, or added some malformed syntax or illegal characters. Pay attention to special symbols such as %, [, ], {, and }. If you notice some of these within the URL, remove them and try to reach your requested destination one more time. If this method doesn’t fix the problem, proceed with the next suggested method.

 

Method 2: Clear Web Browser Cache

Although it is a very convenient way of making web browsing more convenient, sometimes too much and/or corrupted cache can cause issues, and can even prompt your Internet browser to display 400 Error. Should this be the case for the problem, delete cached files and try reloading the page again. How to Clear Browser Cache on Windows.

 

Method 3: Deactivate Web Browser Extensions

Sometimes web browser extensions might interfere with the communication between the client and a server and prompt the display of HTTP Error 400. To see whether these extensions are the cause of the issue, deactivate all of them and see whether you can open the requested Internet page. Should the page open, then Error 400 is caused by some of the installed. How to deactivate the Internet browser extensions:

  1. Google Chrome

Open the browser and click on the three dots at the upper right corner of the window: 400 Error Request Internet Explorer Google Chrome Browser Settings

 

Once you click the three dots, a new menu with options will appear. Browse them and click on Settings: 400 Error Bad Request Internet Explorer Google Chrome Browser Open Settings

 

Clicking on Settings will prompt Google Chrome to open a new tab with options: 400 Error Bad Request Internet Explorer Google Chrome Browser Settings Tab

 

While this tab is opened, click on Extensions:

400 Error Bad Request Internet Explorer Google Chrome Browser Extensions Settings

 

This will open a new tab with all your installed extensions. Now, deactivate all of them by clicking the blue switch at the corner right of each extension box. Once this switch moves to the left and becomes gray, the extension is deactivated:

400 Error Bad Request Internet Explorer Google Chrome Browser Extension Settings

400 Error Bad Request Internet Explorer Google Chrome Browser Extension Turn Off Button 
  • Mozilla Firefox

Open the browser and click on the puzzle piece icon at the top right corner of the window:

400 Error Bad Request Mozilla Firefox Extensions Button
This will open a new tab that should look like this: 400 Error Bad Request Mozilla Firefox Options Tab
Now, while in this tab, click on Extensions: 400 Error Bad Request Mozilla Firefox Extensions Button
This will open the list of the installed extensions in Mozilla Firefox: 400 Error Bad Request Mozilla Firefox Extensions List
Now, click the bright green switch located at the right of each extension box, so it moves to the left and becomes gray. This will disable the extension:

400 Error Bad Request Mozilla Firefox Extensions Switch Button

400 Error Bad Request Mozilla Firefox Switch Off Extension
By using this method, deactivate all active extensions. 

  • Opera

While the browser is opened, click on the main menu located in the upper left corner of the window:

400 Error Bad Request Opera Browser Settings
This will open a new list of options:

400 Error Bad Request Opera Browser Menu Options
While this menu is active, click on Extensions->Extensions:

400 Error Bad Request Opera Browser Extensions Menu
This will prompt Opera to display the list of all installed extensions: 400 Error Bad Request Opera Browser Extensions List
Deactivate all extensions by clicking on the blue switch button located at the right of each extension box:

400 Error Bad Request Opera Browser Extension Switch On Button

400 Error Bad Request Opera Browser Switch Off Button

 

  Do the same for all other extensions.

  • Microsoft Edge

While Microsoft Edge is opened, click on the three-dots menu at the top right of the window: 400 Error Bad Request Internet Explorer

  Clicking this icon will prompt Internet Explorer to display a list of options: 400 Error Bad Request Internet Explorer Options List
  From this list of options, click on Extensions:

400 Error Bad Request Internet Explorer Extensions Button
Clicking on the Extensions button will open a new tab with a list of all installed extensions: 400 Error Bad Request Internet Explorer Extensions list
  Now, by clicking the blue switch in each extension box deactivate the extensions:

400 Error Bad Request Internet Explorer Extension Switch On Button

HTTPS Error 400 Bad Request Internet Explorer Extensions Switch Off Button

Use this method to deactivate all installed extensions. Once you deactivate all installed extensions on your preferred Internet browser, try to open the web page that displays 400 Error. If the page loads properly, then the root of the problem lies in one of the deactivated extensions. follow the next steps to see which one exactly:

  1. Open your preferred web browser and activate only one extension.
  2. Once you activate one extension, try to open the web page that displays HTTP Error 400.
  3. If the page is accessible, then deactivate the active extension and activate another one.
  4. While a new extension is active, try to open the page – if it performs just fine, then the problem lies in another extension.
  5. Repeat this process until you activate an extension that prompts Error 400.
  6. Once you locate it, deactivate it. You can either delete the extension or contact developers for further support.

However, if the deactivation of all browser extensions doesn’t fix the problem, then the problem lies elsewhere. Proceed with the next method.

 

Method 4: Flush Local DNS Cache

Each operating system stores the IP addresses of all visited websites via the Internet browser.

This data is named DNS cache and is used for faster loading of Internet web pages. Sometimes the data stored in the DNS cache can become corrupted and prompt the web server to display the 400 Error. Should this be the root of the issue, the DNS cache should be deleted.

To delete the DNS cache, follow the steps in this article: How to Flush DNS Cache on Windows Also, check out: What is DNS? Now that the DNS cache is flushed, try to open the web page once again. If it still displays an Error 400 message, then the issue is rooted elsewhere. Proceed with the next method.

 

Method 5: Reduce File Size

If you try to upload a file that exceeds the web server file size limit, you will stumble upon a 400 Error message.

To see whether this prompts the server to display such a message, try to upload a small-sized image. If the procedure is successful, then the issue is most likely in the size of the initial file you wish to upload. Check out: What Are the Upload File Size Limits?

However, if even small-sized files prompt the message, then the issue lies elsewhere. Should this be the case, proceed with the next method.

 

Method 6: Restart your Computer Device

Restarting your device might resolve the problem. Try to shut down your computer, along with peripherals such as routers and other Internet devices.

Then switch them on again and see whether you can open the web page without receiving an HTTP Error 400 message.

If you still stumble upon 400 Error, then proceed with the next method.

 

Method 7: Contact Tech Support

Although being labeled as a client-side error, such as all other HTTP status codes starting with 4xx, 400 Error can be prompted by issues on the server side.

To see whether this is indeed the case, try to open the requested web content with different web browsers – if it is still inaccessible, then there is a chance that the issue lies within the performance of the web server that hosts your site.

Should this be the case, contact your hosting provider for further information and technical assistance.

 

Conclusion

In this article, we shared 7 methods that you can use to deal with 400 Error message on your website. All of them are easily applicable and should deal with the problem right away.

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...

How to Install MediaWiki Extensions

Now that you have installed MediaWiki and learned how to log in to the CMS, it is time to extend MediaWiki's functionality via extensions. MediaWiki extensions are sets of files that add various types of functionality to your MediaWiki website. You can use extensions...

How to Log In to MediaWiki

After you install MediaWiki, it is time to log in to the platform, so you can start working on your new MediaWiki website. To log in, you must open the MediaWiki login page and enter your credentials. Doing so will open the platform’s admin panel. In the following...

How to Install MediaWiki

You can quickly install MediaWiki on any of the AwardSpace web hosting plans. This includes our free web hosting, shared hosting, as well as advanced services such as semi-dedicated hosting and VPS hosting. You can install MediaWiki in a matter of minutes, whichever...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...

How to Install MediaWiki Extensions

Now that you have installed MediaWiki and learned how to log in to the CMS, it is time to extend MediaWiki's functionality via extensions. MediaWiki extensions are sets of files that add various types of functionality to your MediaWiki website. You can use extensions...

How to Log In to MediaWiki

After you install MediaWiki, it is time to log in to the platform, so you can start working on your new MediaWiki website. To log in, you must open the MediaWiki login page and enter your credentials. Doing so will open the platform’s admin panel. In the following...

How to Install MediaWiki

You can quickly install MediaWiki on any of the AwardSpace web hosting plans. This includes our free web hosting, shared hosting, as well as advanced services such as semi-dedicated hosting and VPS hosting. You can install MediaWiki in a matter of minutes, whichever...

How to Install an Elgg Theme

After you have installed Elgg core and logged in to the admin dashboard, you can search for themes that can help you customize your new website. Elgg themes are a set of files that help you customize the appearance of your website. Via themes, you can modify website...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.