|
Флибуста | Книжное братство |
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
||||||
|
|
|
В наше время тяжело представить себе человека, который не пользуется услугами интернета. Кто-то черпает на его просторах необходимую информацию, кто-то наслаждается любимыми играми, а кто-то и вовсе — занимается удаленной работой.
Каждый из них, хоть раз, но сталкивался с тем, что на запрос определенной интернет страницы появлялось непонятное сообщение — «400 — Bad Request».

Содержание:
Что означает данное сообщение и почему возникает — обычный пользователь об этом не имеет не малейшего представления.
В нашей статье мы постараемся разобраться — что представляет собой 400 bad request как исправить и как в дальнейшем избежать возникновения подобной ситуации.
В компьютерном мире ошибка 400 (неверный запрос) возникает в том случае, если сервер не в состоянии обработать клиентский запрос. Подобное происходит вследствие неправильного синтаксиса, который способствует созданию необходимых взаимоотношений между различными веб-сервисами, а также клиентом и веб-приложениями.
Из-за этого довольно тяжело разобраться с причиной появления данной проблемы даже в контролируемой среде разработки.
На чьей стороне возникла ошибка
Для тех, кто еще не знает — если код имеет категорию 4хх — это данные ответа http, а ошибки с такими цифровыми значениями возникают на стороне клиента.
Под клиентом следует понимать как браузер, так и устройство, с помощью которого осуществляется доступ к приложению.
По своей сути, возникновение подобной ошибки может означать, что клиентское устройство отправило по какой-либо причине неверный запрос. Это может быть не только неправильно сформированный запрос, но и попытка провести загрузку слишком большого файла. Сюда же вполне можно отнести и неправильно сформированные заголовки http, которые также вызывают ошибку с кодом 4хх.

Рис.2 Сервер не смог распознать запрос.
Далее мы постараемся детально рассмотреть наиболее распространенные сценарии возникновения ошибки, а также возможные варианты ее решения.
Помните, что в данном случае объектом, генерирующим ошибку 400-Bad Request, может быть как клиент, так и запрашиваемый сервер.
к содержанию ↑
Диагностирование ошибки
Возникновение ошибки неверного запроса может быть вызвано одной из ниже перечисленных причин:
- маршрутизатор ложных запросов принимает информацию, которую намеренно или случайно посылает клиент. Существует определенная категория веб-приложений, пытающихся обнаружить определенные заголовки в запросе, удостоверяющие об отсутствии зловредных намерений. Если такие заголовки отсутствуют — возникновение ошибки 400 является неизбежным результатом;
- при загрузке слишком большого файла клиентским устройством выполнение запроса может быть невозможным. Это связано с существующим лимитом на размер загружаемых файлов у большей части серверов и приложений. В этом случае вы также столкнетесь с описываемой проблемой;
- в случае, когда клиентское устройство осуществляет запрос неверно составленного URL — также появится предупреждение об ошибке;
- в процессе использования клиентом устаревших или недействительных cookie файлов. Это связано с тем, что браузер содержит локальные куки, идентифицирующие сессию. Когда два токена — от вашей клиентской сессии и от другого клиента схожи — запрашиваемый сервер может расценить подобную ситуацию как злонамеренное действие и отобразить на экране ошибку неверного запроса.
к содержанию ↑
Решение проблемы с клиентской стороной
Как бы то ни было, а наиболее правильным решением буде поиск и исправление неисправности клиентских устройств и приложений.
Первым делом стоит проверить правильность запрашиваемого URL.
Зачастую ошибка кроется в его некорректном вводе.
Рис.3 Пример отображения доменного имени и URL запрашиваемого сайта.
Не забывайте, что доменные имена — как бы вы их не набрали — ни в коей мере не повлияют на правильную работу ссылки.
К примеру, internet-company winter group.ru и inTErnet-COmpany grouP.ru будут работать абсолютно одинаково. Зато все, что касается URL — информация, идущая после доменного имени — чувствительны к регистру и должны иметь верное написание. В случае, когда URL содержит неправильные символы — сервер отвечает на запрос отображением кода возникшей ошибки.
к содержанию ↑
Очистка файлов cookie
Наличие на локальном сервере идентичных или некорректных куки-файлов также является причиной появления ошибки 400 Bad Request.
Эти файлы представляют собой небольшое количество данных, которыми пользуются различные сайты для того, чтобы запомнить конкретное устройство или браузер, с которого осуществлялся запрос.
Благодаря этому все последующие визиты на такой сайт происходят намного быстрее, чем в первый раз.
Наличие таких куки-файлов создает удобство для пользователя, но может быть и причиной конфликта с токеном сессии другого пользователя. В данном случае одному из вас, а быть может и обоим одновременно, сервер выдаст ошибку 4хх.

Рис.4 Окно удаление файлов cookie.
При удалении cookie не следует полностью избавляться от всех имеющихся — достаточно удалить те из них, которые соответствуют определенному доменному имени.
Однако, если вы не имеете представление в выборочном удалении — будет наиболее правильным полностью очистить браузер от файлов cookie.
Каждый браузер располагает своей схемой очистки, однако, все они в чем-то схожи между собой.
Очистка кэш памяти браузера Chrome
- откройте на компьютере указанный браузер;
- с помощью значка меню, расположенного в верхней правой части рабочего окна, выберите пункт «Дополнительные инструменты», а затем — «Очистить данные просмотров»;
- укажите в специальном окне, за какой период времени следует произвести очистку;
- из присутствующего списка выберите пункт «Файлы cookie и другие данные сайтов»;
- кликните по кнопке «Удалить данные».
После этих действий все сохраненные куки будут удалены из вашего браузера.
к содержанию ↑
Загрузка файлов с меньшим объемом
Если вы загружаете определенный файл и получаете ошибку неверного запроса — возможно причина ее возникновения кроется в слишком большом объеме.
Попробуйте загрузить файл меньшего размера, чтобы удостовериться в корректной работе приложения.
к содержанию ↑
Откат последних изменений
Если перед появлением ошибки 400 Bad Request вы делали обновление системы управления клиентом — решением проблемы может быть откат к ранее установленной версии.
Кроме этого, можно осуществить откат и обновленных расширений и модулей, так как они тоже могут являться причиной появления неприятной ситуации.
к содержанию ↑
Удаление новых расширений и модулей
Некоторые расширения имеют неприятную особенность — изменять в базе данных таблицы и записи, которые им не принадлежат.
В этом случае придется удалить последние установленные расширения, а затем вручную очистить базу данных от их последствий.
к содержанию ↑
Переустановка программы Windows Operating System
Неправильная работа данной программы может послужить причиной возникновения Bad Request. Для решения вопроса следует произвести ее переустановку.
Рассмотрим удаление данной программы на примере ОС Windows 7.
Для этого выполните следующие действия:
- воспользуйтесь кнопкой «Пуск», чтобы открыть вкладку «Программы и компоненты»;
- откройте окно «Программы», ссылка на которое находится в панели управления;
- выберите пункт «Программы и компоненты»;
- в разделе «Имя» найдите строку «Windows Operating System». Выделите ее и кликните по кнопке «Удалить»;
- для завершения процесса удаления выполните все необходимые условия.

Рис.5 Окно «Программы и компоненты».
После удаления вам понадобится заново установить эту программу, воспользовавшись инструкцией Microsoft Corporation.
к содержанию ↑
Выявление и удаление вредоносов
Еще одной причиной, способной вызвать ошибку 400, является заражение вашего компьютера различными вредоносными программами.
Такие программы могут изменить либо полностью удалить файлы состояния браузера.
Кроме того, некоторые компоненты вредоносной программы могут сами служить причиной возникновения ошибки.
Чтобы иметь возможность защиты от подобного рода программ — установите на компьютер соответствующее приложение. Одним из лучших является Emsisoft Anti-Malware. Это приложение не только защищает, но и гарантированно удаляет любое вредоносное ПО.

Рис.6 Программа Emsisoft Anti-Malware.
к содержанию ↑
Обновление драйверов
Как ни странно, но устаревшие или некорректно работающие драйвера тоже способны создать подобную проблему, поэтому старайтесь как можно чаще проверять их работоспособность и вовремя проводить обновление.
Вручную проверять и обновлять каждый драйвер слишком долго, поэтому проще всего установить на компьютер такую программу, как DriverDoc, которая полностью избавит вас от этой рутинной работы.
к содержанию ↑
Обновление Windows
Корпорация Microsoft не прекращает работу, связанную с обновлением и улучшением системных файлов своих операционных систем.
В некоторых случаях необходимо просто обновить коды состояний браузера и ошибка Bad Request исчезнет сама собой.

Рис.7 Окно обновления Windows.
Для этого понадобится воспользоваться кнопкой «Начать» и ввести в строку поискового запроса «update» (обновление), после чего нажать на клавишу Enter.
В этом случае откроется диалоговое окно обновления ОС, в котором будут отображаться все доступные пакеты (если такие имеются).
Если ни один из вариантов не помог избавиться от возникшей проблемы — обратитесь к специалистам.
Видеоролик на тему решения проблемы 400 Bad Request:
https://www.youtube.com/watch?v=FR9jRnrljuQ
Забыл пароль
Ошибка браузера
Ошибка на проекте
Заблокирован мир
На аккаунте замечена подозрительная активность
Если Вы видите ошибку браузера: 400 Bad Request, 403 Forbidden, 404 Not Found, 500 Internal Server Error, 502 Bad Gateway или другую ошибку —



заполните форму ниже:
Укажите браузер, который используете *
Ошибка в поле
Укажите вашего провайдера *
Ошибка в поле
Укажите страну и город проживания *
Ошибка в поле
Укажите адрес страницы, на которой вы были, прежде чем попали на страницу с ошибкой браузера *
Ошибка в поле
Укажите адрес страницы с ошибкой браузера *
Ошибка в поле
Укажите точный текст ошибки браузера (404, 502 и т.д. — целиком) *
Ошибка в поле
Адрес проблемного ящика *
Ошибка в поле
Ваше сообщение *
- последовательность Ваших действий
Ошибка в поле
Доступно символов:
Как к вам можно обращаться?
Ошибка в поле
Почта, на которую мы ответим *
Ошибка в поле
Если у вас нет доступа к данному почтовому ящику или вы не можете получать письма, то укажите альтернативный почтовый ящик для переписки со службой поддержки. Если у вас нет такого ящика, вам необходимо зарегистрироваться.
Прикрепите файл со скриншотом страницы, на которой возникает проблема:
Ошибка в поле
Нажимая «Отправить», вы соглашаетесь с условиями использования
When a website fails to load, it’s simply annoying. It’s important to understand, though, why that happened so you know how to fix it.
The 4xx family of status codes is the one we’re investigating here as they relate to invalid or corrupt requests from the client. Specifically, we’ll take a closer look at the 400 Bad Request error: what this error means, what causes it as well as some specific steps to fix the issue.
- What is 400 Bad Request Error?
- What Causes a 400 Bad Request Error
- 400 Bad Request Error: What Does It Look Like?
- How to Fix 400 Bad Request Error
Check out our video guide to fixing 400 errors:
What is a 400 Bad Request Error?
A 400 Bad Request, also known as a 400 error or HTTP error 400, is perceived by the server as a generic client error and it is returned when the server determines the error doesn’t fall in any of the other status code categories.
The key concept to understand here is that the 400 Bad Request error is something that has to do with the submitted request from the client before it is even processed by the server.
The Internet Engineering Task Force (IETF) defines the 400 Bad Request as:
The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
What Causes the HTTP 400 Bad Request Error?
There are various root causes that can trigger the 400 Bad Request error and, even if this error isn’t specific to any particular browser or OS (operating system), the fixes do vary slightly.
1. URL String Syntax Error
The HTTP error 400 can occur due to incorrectly typed URL, malformed syntax, or a URL that contains illegal characters.
This is surprisingly easy to do by mistake and can happen if a URL has been encoding incorrectly. The following link is an example of a URL containing characters the server won’t be able to process, hence a 400 Bad Request error is triggered.
https://twitter.com/share?lang=en&text=Example%20of%20malformed%%20characters%20in%20URL
Note the extra % character immediately after the word malformed in the URL. A properly encoded space should be %20 and not %%20. This is what the result looks like in the Chrome browser.
An illegal character can also trigger a 400 Bad request error. The following URL contains a { character, which is not allowed. Therefore, it results in the same type of error.
https://twitter.com/share?lang=en&text=Example%20of%20malformed{%20characters%20in%20URL
2. Corrupted Browser Cache & Cookies
Even if the URL is 100% correct, the 400 Bad Request error can still occur because of corrupted files in the browser cache or problems with expired/corrupted browser cookies.
You may have encountered a 400 Bad Request error when trying to access the admin area of your WordPress site some time after your last log in. That’s happening because of the way the cookie handling your login authentication data may have gotten corrupted and can’t successfully authenticate you as a valid user with admin privileges. This will then result in the connection being refused and a 400 Bad Request error is triggered.
3. DNS Lookup Cache
The 400 Bad Request can happen when the DNS data stored locally is out of sync with registered DNS information.
All domain names are aliases for IP addresses. You can think of an IP address as a phone number “always calling” a specific server you want to connect to. When you first visit a website, a process called “name resolution” takes place and that’s when the domain name resolves to the specific IP address of the server.
To speed things up, these details are stored locally on your computer in the local DNS cache so the name resolution process doesn’t have to be done for every single visit for a given website. This is similar to how the browser cache works for HTML, CSS, JavaScript, media, and other files.
4. File Size Too Large
A 400 Bad Request can also occur when you try to upload a file to a website that’s too large for the upload request to be fulfilled. This is strictly related to the file size limit of the server and will vary based on how it has been set up.
Until now, we’ve focused on the 400 Bad Request error being triggered only due to client-side issues.
5. Generic Server Error
This error can sometimes be triggered because of server-side issues as well. Specifically, a 400 status code could indicate a general problem with the server, a server glitch, or other unspecified temporary issues.
If this happens when trying to connect to a third-party website, it’s really outside of your control and your best shot is to try refreshing the browser and check at regular intervals whether the issue has been fixed by the site owners.
One thing you can do to verify the issue is a server-side issue is to try loading the website on different browsers. If you want to go the extra mile, test it on an entirely different machine/device to rule out system-specific problems.
When you can’t connect to the site via any other browsers, computers, operating systems, or other devices then it’s likely to be a server-side issue. If you’d like, you can reach out to the site owner and let them know which OS, browser, and versions you were using when experienced the issue.
400 Bad Request Error: What Does It Look Like?
Most of the time a 400 Bad Request is related to client-side issues. We already saw what a 400 Bad Request error looks like in the Chrome browser.

But what about the other browsers?
400 Bad Request in Firefox

400 Bad Request in Safari

400 Bad Request in Microsoft Edge

As you can see, all browsers return a generic and unhelpful 400 status code message. It seems you’re pretty much left alone for finding a solution to the problem. In Firefox and Safari, it’s not even clear a 400 Bad Request error has occurred at all as the browser window is completely blank!
Fortunately, we’ve put together a series of simple steps you can take to fix the 400 Bad Request error. Let’s take a closer look at each one of these in the next section!
400 Bad Request (Glossary):
The 400 Bad Request Error is an HTTP response status code
that indicates the server was unable to process (understand) the request sent by the client due to incorrect syntax, invalid request message framing, or deceptive request routing.
How to Fix 400 Bad Request Error?
Complete the steps outlined in this section to help diagnose and correct a 400 Bad Request.
The proposed solutions include:
- 1. Check the Submitted URL
- 2. Clear Browser Cache
- 3. Clear Browser Cookies
- 4. File Upload Exceeds Server Limit
- 5. Clear DNS Cache
- 6. Deactivate Browser Extensions
Before digging deeper on the different ways to fix the 400 Bad Request error, you may notice that several steps involve flushing locally cached data.
It’s true that if your computer didn’t cache any files or data at all, there would probably be significantly less connection error issues.
However, the benefits of caching files/data are well documented and the web browsing experience would certainly suffer if caching techniques weren’t used by browsers. When it comes to Edge Caching, for example, you can reduce by more than 50% the time required to deliver full pages to browsers.
It all comes down to a compromise between optimization and user experience, where websites try to load as quickly as possible but can occasionally be prone to errors such as a 400 Bad Request without any warning.
1. Check the Submitted URL
As this is one of the most common reasons for a 400 Bad Request error let’s start with an obvious culprit, the URL string itself. It can be very easy to include unwanted characters in the URL when entering it manually in the browser.
Check that the domain name and specific page you’re trying to access are spelled and typed correctly. Also, make sure they’re separated with forward slashes. If the URL contains special characters, make sure they have been encoded correctly and are legal URL characters.
For long URLs, you might find it easier and less error-prone, to use an online URL encoder/decoder. These type of utilities should also be able to detect illegal characters automatically in the URL as well.
Once you’re sure the URL is correct, try to access it again in the browser. If you’re still getting the 400 Bad Request error it’s time to clear some cache!
2. Clear Browser Cache
If any locally stored website files have been corrupted this can cause a 400 Bad Request error to be returned instead of the expected website content.
This includes all types of files a website needs to properly run such as:
- HTML
- JavaScript
- Text/config files
- CSS
- Media (images, videos, audio)
- Data files (XML, JSON)
These files are stored locally on your computer by the browser when the website is originally visited.
To fix this, the browser cache needs to be cleared.
In Chrome, click on the three-dotted icon on the right-hand corner and select the More Tools > Clear Browsing Data from the popup menu.

This will display the Clear browsing data window. In here, you’ll want to make sure the Cached images and files option is checked and then click on the Clear data button to clear the browser cache.
You can also choose to delete recent files for a specific time range via the Time range dropdown. However, to make sure all potentially corrupted files are removed we recommend deleting all locally stored files by selecting the All time option.

If you’re using an alternative browser, check this guide for clearing the browser cache for all the major browsers (Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera).
3. Clear Browser Cookies
If clearing your browser cache didn’t work, then it’s time to delete the cookies too. A single website can use dozens of different cookies. If just one of them is expired or becomes corrupted, then it can be enough to trigger a 400 Bad Request.
To clear your cookies in Chrome, open up the Clear browsing data window by clicking the icon with the three dots in the top-right corner and select More Tools > Clear Browsing Data from the popup menu.
Make sure the Cookies and other site data is checked and select All time for the date range option to delete all current website cookies.

Once done, try loading the website which returned the 400 Bad Request error again. Assuming the site uses cookies, clearing them out from your browser could fix the issue as it’s often associated with corrupt or expired cookies.
To clear cookies in browsers other than Chrome please read this guide here.
4. File Upload Exceeds Server Limit
If you’re trying to upload a file to a website that’s exceeding the server file size limit, you’ll encounter a 400 Bad Request error.
You can test this out by uploading a smaller file first. If this is successful then the initial file is probably too large and you’ll need to find some way to reduce it before uploading it again.
This will depend on the type of file you’re trying to upload but there are plenty of resources available online that can help to compress large images, video, and audio files.
5. Clear DNS Cache
Another common cause of a 400 Bad Request is when local DNS lookup data becomes either corrupted or out-of-date.
Local DNS data isn’t stored by the browser but by the operating system itself. We have put together a detailed guide to clear the DNS cache for Windows and macOS operating systems.
6. Deactivate Browser Extensions
If you have browser extensions installed that affect website cookies then these could actually be the culprit here. Try temporarily disabling them to see if it makes a difference before trying to connect to the website again.
You may not have considered this could be an issue, but it’s certainly worth a try if you’ve exhausted all other options.
Experiencing a 400 Bad Request error? Check out our detailed guide on how to fix it once and for all! ❌🦊Click to Tweet
Summary
If you’re experiencing a 400 Bad Request error there are several actions you can perform to try and fix the issue.
In the vast majority of possible scenarios, a 400 Bad Request is a client-side issue caused by the submitted request to the server or a local caching issue. The solutions outlined in this article are easy to implement by anyone with minimal technical knowledge. You should be able to get your website working again in no time!
On occasions, though, a 400 Bad Request status code could hint to a generic server issue. This can be quickly diagnosed by testing the given site on different devices. If you suspect this to be a server-side error, there’s not much you can do other than keep trying to load the site at regular intervals and inform the site admin.
Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:
- Easy setup and management in the MyKinsta dashboard
- 24/7 expert support
- The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
- An enterprise-level Cloudflare integration for speed and security
- Global audience reach with up to 35 data centers and 275+ PoPs worldwide
Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.
When a website fails to load, it’s simply annoying. It’s important to understand, though, why that happened so you know how to fix it.
The 4xx family of status codes is the one we’re investigating here as they relate to invalid or corrupt requests from the client. Specifically, we’ll take a closer look at the 400 Bad Request error: what this error means, what causes it as well as some specific steps to fix the issue.
- What is 400 Bad Request Error?
- What Causes a 400 Bad Request Error
- 400 Bad Request Error: What Does It Look Like?
- How to Fix 400 Bad Request Error
Check out our video guide to fixing 400 errors:
What is a 400 Bad Request Error?
A 400 Bad Request, also known as a 400 error or HTTP error 400, is perceived by the server as a generic client error and it is returned when the server determines the error doesn’t fall in any of the other status code categories.
The key concept to understand here is that the 400 Bad Request error is something that has to do with the submitted request from the client before it is even processed by the server.
The Internet Engineering Task Force (IETF) defines the 400 Bad Request as:
The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
What Causes the HTTP 400 Bad Request Error?
There are various root causes that can trigger the 400 Bad Request error and, even if this error isn’t specific to any particular browser or OS (operating system), the fixes do vary slightly.
1. URL String Syntax Error
The HTTP error 400 can occur due to incorrectly typed URL, malformed syntax, or a URL that contains illegal characters.
This is surprisingly easy to do by mistake and can happen if a URL has been encoding incorrectly. The following link is an example of a URL containing characters the server won’t be able to process, hence a 400 Bad Request error is triggered.
https://twitter.com/share?lang=en&text=Example%20of%20malformed%%20characters%20in%20URL
Note the extra % character immediately after the word malformed in the URL. A properly encoded space should be %20 and not %%20. This is what the result looks like in the Chrome browser.
An illegal character can also trigger a 400 Bad request error. The following URL contains a { character, which is not allowed. Therefore, it results in the same type of error.
https://twitter.com/share?lang=en&text=Example%20of%20malformed{%20characters%20in%20URL
2. Corrupted Browser Cache & Cookies
Even if the URL is 100% correct, the 400 Bad Request error can still occur because of corrupted files in the browser cache or problems with expired/corrupted browser cookies.
You may have encountered a 400 Bad Request error when trying to access the admin area of your WordPress site some time after your last log in. That’s happening because of the way the cookie handling your login authentication data may have gotten corrupted and can’t successfully authenticate you as a valid user with admin privileges. This will then result in the connection being refused and a 400 Bad Request error is triggered.
3. DNS Lookup Cache
The 400 Bad Request can happen when the DNS data stored locally is out of sync with registered DNS information.
All domain names are aliases for IP addresses. You can think of an IP address as a phone number “always calling” a specific server you want to connect to. When you first visit a website, a process called “name resolution” takes place and that’s when the domain name resolves to the specific IP address of the server.
To speed things up, these details are stored locally on your computer in the local DNS cache so the name resolution process doesn’t have to be done for every single visit for a given website. This is similar to how the browser cache works for HTML, CSS, JavaScript, media, and other files.
4. File Size Too Large
A 400 Bad Request can also occur when you try to upload a file to a website that’s too large for the upload request to be fulfilled. This is strictly related to the file size limit of the server and will vary based on how it has been set up.
Until now, we’ve focused on the 400 Bad Request error being triggered only due to client-side issues.
5. Generic Server Error
This error can sometimes be triggered because of server-side issues as well. Specifically, a 400 status code could indicate a general problem with the server, a server glitch, or other unspecified temporary issues.
If this happens when trying to connect to a third-party website, it’s really outside of your control and your best shot is to try refreshing the browser and check at regular intervals whether the issue has been fixed by the site owners.
One thing you can do to verify the issue is a server-side issue is to try loading the website on different browsers. If you want to go the extra mile, test it on an entirely different machine/device to rule out system-specific problems.
When you can’t connect to the site via any other browsers, computers, operating systems, or other devices then it’s likely to be a server-side issue. If you’d like, you can reach out to the site owner and let them know which OS, browser, and versions you were using when experienced the issue.
400 Bad Request Error: What Does It Look Like?
Most of the time a 400 Bad Request is related to client-side issues. We already saw what a 400 Bad Request error looks like in the Chrome browser.

But what about the other browsers?
400 Bad Request in Firefox

400 Bad Request in Safari

400 Bad Request in Microsoft Edge

As you can see, all browsers return a generic and unhelpful 400 status code message. It seems you’re pretty much left alone for finding a solution to the problem. In Firefox and Safari, it’s not even clear a 400 Bad Request error has occurred at all as the browser window is completely blank!
Fortunately, we’ve put together a series of simple steps you can take to fix the 400 Bad Request error. Let’s take a closer look at each one of these in the next section!
400 Bad Request (Glossary):
The 400 Bad Request Error is an HTTP response status code
that indicates the server was unable to process (understand) the request sent by the client due to incorrect syntax, invalid request message framing, or deceptive request routing.
How to Fix 400 Bad Request Error?
Complete the steps outlined in this section to help diagnose and correct a 400 Bad Request.
The proposed solutions include:
- 1. Check the Submitted URL
- 2. Clear Browser Cache
- 3. Clear Browser Cookies
- 4. File Upload Exceeds Server Limit
- 5. Clear DNS Cache
- 6. Deactivate Browser Extensions
Before digging deeper on the different ways to fix the 400 Bad Request error, you may notice that several steps involve flushing locally cached data.
It’s true that if your computer didn’t cache any files or data at all, there would probably be significantly less connection error issues.
However, the benefits of caching files/data are well documented and the web browsing experience would certainly suffer if caching techniques weren’t used by browsers. When it comes to Edge Caching, for example, you can reduce by more than 50% the time required to deliver full pages to browsers.
It all comes down to a compromise between optimization and user experience, where websites try to load as quickly as possible but can occasionally be prone to errors such as a 400 Bad Request without any warning.
1. Check the Submitted URL
As this is one of the most common reasons for a 400 Bad Request error let’s start with an obvious culprit, the URL string itself. It can be very easy to include unwanted characters in the URL when entering it manually in the browser.
Check that the domain name and specific page you’re trying to access are spelled and typed correctly. Also, make sure they’re separated with forward slashes. If the URL contains special characters, make sure they have been encoded correctly and are legal URL characters.
For long URLs, you might find it easier and less error-prone, to use an online URL encoder/decoder. These type of utilities should also be able to detect illegal characters automatically in the URL as well.
Once you’re sure the URL is correct, try to access it again in the browser. If you’re still getting the 400 Bad Request error it’s time to clear some cache!
2. Clear Browser Cache
If any locally stored website files have been corrupted this can cause a 400 Bad Request error to be returned instead of the expected website content.
This includes all types of files a website needs to properly run such as:
- HTML
- JavaScript
- Text/config files
- CSS
- Media (images, videos, audio)
- Data files (XML, JSON)
These files are stored locally on your computer by the browser when the website is originally visited.
To fix this, the browser cache needs to be cleared.
In Chrome, click on the three-dotted icon on the right-hand corner and select the More Tools > Clear Browsing Data from the popup menu.

This will display the Clear browsing data window. In here, you’ll want to make sure the Cached images and files option is checked and then click on the Clear data button to clear the browser cache.
You can also choose to delete recent files for a specific time range via the Time range dropdown. However, to make sure all potentially corrupted files are removed we recommend deleting all locally stored files by selecting the All time option.

If you’re using an alternative browser, check this guide for clearing the browser cache for all the major browsers (Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera).
3. Clear Browser Cookies
If clearing your browser cache didn’t work, then it’s time to delete the cookies too. A single website can use dozens of different cookies. If just one of them is expired or becomes corrupted, then it can be enough to trigger a 400 Bad Request.
To clear your cookies in Chrome, open up the Clear browsing data window by clicking the icon with the three dots in the top-right corner and select More Tools > Clear Browsing Data from the popup menu.
Make sure the Cookies and other site data is checked and select All time for the date range option to delete all current website cookies.

Once done, try loading the website which returned the 400 Bad Request error again. Assuming the site uses cookies, clearing them out from your browser could fix the issue as it’s often associated with corrupt or expired cookies.
To clear cookies in browsers other than Chrome please read this guide here.
4. File Upload Exceeds Server Limit
If you’re trying to upload a file to a website that’s exceeding the server file size limit, you’ll encounter a 400 Bad Request error.
You can test this out by uploading a smaller file first. If this is successful then the initial file is probably too large and you’ll need to find some way to reduce it before uploading it again.
This will depend on the type of file you’re trying to upload but there are plenty of resources available online that can help to compress large images, video, and audio files.
5. Clear DNS Cache
Another common cause of a 400 Bad Request is when local DNS lookup data becomes either corrupted or out-of-date.
Local DNS data isn’t stored by the browser but by the operating system itself. We have put together a detailed guide to clear the DNS cache for Windows and macOS operating systems.
6. Deactivate Browser Extensions
If you have browser extensions installed that affect website cookies then these could actually be the culprit here. Try temporarily disabling them to see if it makes a difference before trying to connect to the website again.
You may not have considered this could be an issue, but it’s certainly worth a try if you’ve exhausted all other options.
Experiencing a 400 Bad Request error? Check out our detailed guide on how to fix it once and for all! ❌🦊Click to Tweet
Summary
If you’re experiencing a 400 Bad Request error there are several actions you can perform to try and fix the issue.
In the vast majority of possible scenarios, a 400 Bad Request is a client-side issue caused by the submitted request to the server or a local caching issue. The solutions outlined in this article are easy to implement by anyone with minimal technical knowledge. You should be able to get your website working again in no time!
On occasions, though, a 400 Bad Request status code could hint to a generic server issue. This can be quickly diagnosed by testing the given site on different devices. If you suspect this to be a server-side error, there’s not much you can do other than keep trying to load the site at regular intervals and inform the site admin.
Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:
- Easy setup and management in the MyKinsta dashboard
- 24/7 expert support
- The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
- An enterprise-level Cloudflare integration for speed and security
- Global audience reach with up to 35 data centers and 275+ PoPs worldwide
Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.
Приветствую вас на нашем супер-пупер-классном портале WiFiGid! В этой статье мы рассмотрим очень близкую тему для нас и очень неприятную ошибку для вас – ошибка 400 Bad Request. После прочтения этой короткой заметки в простом формате вы точно сможете или побороть эту ошибку, или просто смиритесь с ней. Начинаем?
Содержание
- Что это за ошибка 400?
- Основные причины ошибки 400
- Шаг 0 – Перезагрузка
- Шаг 1 – Неправильная ссылка
- Шаг 2 – Чистим Cookie и кэш
- Шаг 3 – Антивирусы и брандмауэры
- Шаг 4 – Драйвера сетевых устройств
- Шаг 5 – При загрузке файла
- Шаг 6 – Провайдер
- Вебмастерам и прочим коллегам
- Видео по теме
- Задать вопрос автору статьи

Сама ошибка может иметь разные названия в зависимости от ее места проявления:
- 400 Bad Request
- Request failed with status code 400
- HTTP Status 400 bad request
- Statuscode 400 Error Bad Request
- Bad request Please reload the page
Список может быть спокойно расширен, но главное тут одно – 400.
И для справки: «Bad Request» в переводе с английского на русский – «плохой запрос», т.е. что-то пошло не так с вашим запросом к их сайту или серверу.
Когда вы открываете какой-то сайт, его сервер (не ваш компьютер, не ваш провайдер, а именно его сервер) отправляет вам статус в виде какой-то цифры. Как правило это цифра 200 – вы ее не видите, т.к. она означает, что все хорошо, и сайт был загружен. Запомнили – статус равен какой-то цифре.
Теперь будет очень краткое изложение статусов (разобью их сначала по классам):
- 2xx – Скорее всего все хорошо, сайт загружен, этот статус вы не видите.
- 3xx – Обычно сайт куда-то переехал, а ваш браузер не показывает этот статус и сразу переходит на новый сайт в месте «переезда».
- 4xx – Что-то не так с вашим запросом. Обычно, мы получаем статус 404 «Страница не найдена», когда обращаемся к несуществующей странице сайта. Ключевой момент здесь – сам сайт отработал ваш запрос, но не знает, что с ним делать и выдает этот статус. К подробному рассмотрению статуса 400 мы вернемся чуть ниже.
- 5xx – Сайт вообще не смог отработать ваш запрос, и поэтому сервер просто решил выдать ошибку от беспомощности.
Суть всего вышеизложенного – наша ошибка возникла из-за запроса, обычно она не критична, проявляется именно во время обработки сайта, можно попробовать что-то сделать.
Основные причины ошибки 400
Пробегусь по основным причинам, а способы их решения рассмотрим ниже:
- Неправильная ссылка.
- Старые файлы Cookie.
- Загрузка большого файла.
- Блокировка антивирусом или брандмауэром сайта. Сюда же относим возможную заразу (вирусы) на компьютере, которая сама обрабатывает запросы.
- Проблемы на стороне сайта.
- Проблемы на стороне вашего интернет-провайдера.
Вроде бы разложил все варианты по вероятности их проявления, теперь можно пробежаться по ним уже с деталями.
Шаг 0 – Перезагрузка
Все верно, просто на этом шаге перезагружаем ваш компьютер или телефон и пробуем заново. Очень часто такое просто действие помогает. А еще для дальнейшей диагностики здорово помогает другое устройство – попробуйте сделать то же самое на другом компьютере/телефоне. Если проявляется ошибка в обоих случаях, то проблема точно не у вас
Шаг 1 – Неправильная ссылка
А вы точно переходите по правильной ссылке? Есть просто вероятность, что вам дали неверную ссылку, поэтому ничего и не открывается. Как простое решение – зайти на главную страницу вашего сайта (если мы открываем сайт) и попробовать найти нужную страницу оттуда – например, если администраторы сайта просто удалили ту страницу, а переадресацию на правильную не поставили.
Если же вы пользуетесь какими-то сервисами или приложениями, то тут два варианта – или ждать обновления приложения, или попытаться изменить свой запрос (если есть возможность, конечно). Я сталкивался с Bad Request в приложении «Сбер Спасибо» – просто по нужному баннеру не открывалась моя история начислений. Просто подождал, а на следующий день уже все заработало – тоже как вариант решения.
И еще раз – иногда проще всего поискать правильную ссылку или же подождать некоторое время. Остальные шаги могут быть лишними.
Шаг 2 – Чистим Cookie и кэш
Cookie и кэш браузера, если вы работаете с сайтом, а также кэш приложения (в случае с приложениями) тоже участвуют в запросе. И они могут вполне себе вызвать «неверный запрос» (т.е. скорее всего как устаревший). Поэтому как профилактика:
- Чистим куки браузера (на примере Яндекс Браузера)
- Чистим кэш браузера (на примере Оперы)
Если используете приложение – можно почистить его кэш через настройки приложений (тут уже смотреть по вашей модели телефона), а еще настоятельно рекомендую обновить ваше приложение, если для него доступны обновления.
Еще в системе есть кэш DNS, который тоже можно для профилактики сбросить:
- Инструкция по сбросу кэша DNS
Шаг 3 – Антивирусы и брандмауэры
Тут все сводится к следующим проверкам:
- Временно отключаем свой антивирус. Некоторые антивирусы иногда блокируют какие-то запросы к сайтам, а в итоге первичное приложение или сайт не могут загрузиться полностью и вызывают ошибку. Но помним, что на некоторые сайты все-таки без антивируса лучше не заходить.
- Если вы настраивали свой брандмауэр для какой-то задачи, тоже можно его временно отключить. Мало ли как-то ограничили ваш сайт.
- Просто прогоните свою систему антивирусом. Быть может завелся какой-то зловред, который тоже блокирует часть запросов. А еще в этой сфере очень часто происходит подмена DNS, если знаете как – проверьте свои DNS через настройки сетевых адаптеров и трассировкой маршрута, а то вдруг на вашем пути к сайту появился какой-то нехороший узел, который и мешает получить правильный ответ.
Шаг 4 – Драйвера сетевых устройств
Особенно проявляется после обновления системы – новая система не может работать на старых драйверах с той же сетевой картой, и как итог получаем ошибки. Здесь просто рекомендую по возможности в профилактических целях произвести обновление всех драйверов в системе.
Шаг 5 – При загрузке файла
Если ошибка появляется при загрузке любого файла (документ, видео, фото) – есть вариант, что ваш файл просто превышает максимальный размер, который заложен на сервере. Решение – уменьшаем размер файла. До какого размера, сказать не могу – пробуем методом «тыка».
Шаг 6 – Провайдер
Если совсем ничего не помогает, и все сайты подряд выдают ошибку 400, есть вероятность, что в деле виновен провайдер. Это бывает очень редко, поэтому применяем в крайних случаях:
- Перезагружаем свой домашний роутер (откуда у вас интернет).
- Если не помогает – звоним провайдеру и узнаем о наличии технических проблем на линии.
Вебмастерам и прочим коллегам
Если ваш сервер выдает эту ошибку – попробуйте сначала сами посмотреть свой сайт в режиме «Инкогнито». Если ошибка повторяется и все-таки возникает на вашем сервере – идем смотреть логи, кофейную гущу не применяем, вся истина скрыта где-то там. С радостью бы поподсказывал на эту тему в комментариях, но толку от этого не вижу – логи наверняка знают ответ лучше меня. Если совсем все будет плохо – пишите, договоримся, посмотрим. По долгу службы перелопатили уже тонны серверов на подобные проблемы.



— (С)

— (С).



), которая поселилась на форуме Флибусты и превратила его в жидо-хохло-пиндосный политический срач. Вместо литературного форума. Поэтому и стараюсь бывать там как можно реже, и никогда в этом сраче не участвую. И тут я далеко не случайно. И авторство стихотворения http://librusec.ucoz.de/index/0-5 — мое, оно тоже говорит о чем-то. Вообще же мне все равно — Либрусек, Флибуста или что-то еще. Важно не допустить победы копирастов в области культуры вообще, и литературы, в частности. Вот так как-то…