Http 408 ошибка

Encountering HTTP status code errors can be frustrating and stressful. This is especially true when you don’t know what the message means or what’s causing it. One of the errors you might be dealing with is HTTP 408 Request Timeout.

Fortunately, you can take a handful of steps to troubleshoot and resolve this issue. You’ll simply need a basic understanding of what could be causing the HTTP 408 error, then implement solutions to fix it.

In this post, we’ll explain the HTTP 408 status code and some common causes of the error. Then we’ll walk you through eight potential solutions for resolving it. Let’s jump in!

Check Out Our Video Guide to Fixing the HTTP 408 Error

What the HTTP 408 Status Code Is

HTTP status codes indicate the status of a client’s request. They can also redirect clients to different resources, depending on their requests.

The most common HTTP status code is 404, which indicates that the requested resource could not be found. Other common status codes include 200 (OK), 400 (Bad Request), and 500 (Internal Server Error).

Status codes are divided into five categories:

  1. Informational: The server is still processing the request.
  2. Successful: The request was completed successfully.
  3. Redirects: The client should be redirected to a different resource.
  4. Client Errors: There was an error with the request.
  5. Server Errors: There was an error with the server.

HTTP 408 falls into the category of client errors. The status code communicates that the server did not receive a timely response from the client and that the server timed out waiting for the request. This can happen if the client takes too long to send the request or the server is too busy to process it.

The HTTP 408 error is similar to the 504 Gateway Timeout status code. However, the former doesn’t come from a gateway or proxy server. Instead, it comes directly from the web server the client is connected to.

Encountering HTTP status code errors can be frustrating and stressful. 😰 This guide can help. 🛠Click to Tweet

Common Causes of the HTTP 408 Request Timeout Error

There are a handful of potential reasons behind the HTTP 408 request timeout error. These causes include:

  • Network latency
  • Clients timing out
  • Servers being too busy to handle the request

The 408 Request Timeout error means the request you sent to the website server took longer than the server was prepared to wait. It can happen due to heavy traffic on the internet or a slow connection on your side.

The problem with this status code is that it can occur for both client-side and server-side-related reasons. In other words, although the 408 error is categorized as a client error, this doesn’t necessarily mean the issue stems from the browser or device. It’s possible that the server is misconfigured or isn’t handling requests correctly.

How To Fix the HTTP 408 Error (8 Solutions)

Now that we understand more about the HTTP 408 status code, let’s discuss how you can resolve it. Below are eight potential solutions you can use, separated into two categories: client-side and server-side.

Client-Side

Below are some client-side solutions you can use to resolve the HTTP 408 error!

1. Back Up Your Site

The first thing you should do before troubleshooting the HTTP 408 error is back up your website. Then, if anything goes wrong while trying to fix the issue, you will have a full, updated version of your files and database to restore.

There are several methods you can use to back up your site. One is the manual approach. This method involves using a Secure File Transfer Protocol (SFTP) client, such as FileZilla. After receiving your SFTP credentials from your host and connecting to the server, you can download your files from the root directory (public_html folder).

Next, you’ll need to download your database via phpMyAdmin. If you’re a Kinsta user, you can access this through MyKinsta > Sites > Info:

MyKinsta database section

The database access section from MyKinsta

Then select Open phpMyAdmin to launch the database manager. Select your site’s database from the menu:

The Kinsta phpMyAdmin screen

The Kinsta phpMyAdmin screen

Next, click on Export at the top of the screen. Make sure to select SQL under Format, then click on Go. Your database file should begin downloading.

You can also use a backup plugin such as UpdraftPlus. After installing and activating the plugin, navigate to Settings > UpdraftPlus Backups in your WordPress dashboard, then click on Backup Now:

Using UpdraftPlus to backup a WordPress site

Backing up WordPress site with UpdraftPlus

A third option is to back up your site through your web host. At Kinsta, you can view your existing backups by logging into MyKinsta and then navigating to the Backups tab:

The MyKinsta Backups tab

The MyKinsta Backups tab

You can create up to five manual backups, which are automatically stored for two weeks. We also offer DevKinsta, a free local WordPress development tool you can use for staging and backing up your site to a local environment.

You can do this by going to DevKinsta and selecting the Import from Kinsta option. You may need to verify your hosting credentials. Once you choose your site, DevKinsta handles the rest.

2. Check the URL

One of the reasons you may be seeing the HTTP 408 status code error is that you simply typed the wrong URL into the browser. Therefore, you should now double-check the URL to ensure you didn’t make any typos.

Pay close attention to the domain name, especially if there are slashes or hyphens. Try re-entering the URL and then reloading the page. If the timeout request error is still present, you can move on to the next solution.

3. Review Recent Database Changes

If you’ve made any recent changes to your database, they may be causing the HTTP 408 error. You’ll need to revert any changes you’ve made to fix the issue.

Recently installed extensions or updates to your database may have altered database records that are causing problems. To see if this is the case, we recommend opening your database (phpMyAdmin) and manually going through to check any tables or records that have been recently modified. If you find any, revert them to their original states.

4. Uninstall Extensions and Plugins

Adding extensions and plugins to your site can cause various incompatibility issues and errors, including the HTTP 408 status code. One of the easiest ways to see whether this is the case is to deactivate all of the plugins on your site.

If you have access to your WordPress dashboard, you can do this by navigating to Plugins from the admin area, selecting all of the installed plugins, then selecting Deactivate from the Bulk actions dropdown menu. Now click on Apply:

Deactivating WordPress plugins in bulk

Deactivating WordPress plugins in bulk

If you don’t have access to your dashboard, you can bulk deactivate your extensions by connecting to your site via SFTP, then renaming the plugins folder to something like “plugins_old”.

Revisit your site. You can assume a plugin was to blame if you no longer see the error message.

You’ll need to reactivate each plugin one by one, checking the site in between. Once you see the error message again, you’ll have to uninstall that extension and find a replacement (or contact the developer for more information).

5. Roll Back Recent Changes

If you’ve recently made any changes to your WordPress site, such as installing a new plugin or updating the WordPress software, you might be seeing the HTTP 408 error. New tools can sometimes lead to configuration problems. You can roll back recent changes by restoring your site to a previous version.

If you’re a Kinsta user, open your MyKinsta dashboard, then navigate to Sites and select your site. Next, click on Backups.

From the list of backups, find the version you want to restore, click on Restore to, then select Staging or Live:

Restoring a WordPress backup from MyKinsta

Restoring a WordPress backup from MyKinsta

Next, you can confirm the backup restoration and click on Restore backup. Once the backup is complete, you can check to see whether the error message is still displaying.

Server-Side

If none of the above solutions worked, the HTTP 408 error might be caused by a server-side issue. Let’s look at potential solutions you can use to resolve it.

6. Check Server Config Files

One of the ways you can determine the cause of the HTTP 408 error is to check your server configuration files via SFTP. The process for doing so will depend on your server software.

Chances are that your server is either running on Apache or Nginx. If you’re a Kinsta user, we use Nginx.

If you’re using Apache, you can look for the .htaccess file within your site’s root directory. When you locate the file, open it and look for the following lines:

  • KeepAliveTimeout
  • RequestReadTimeout

If you find these directives, you can comment them out by using the # symbol prefix before the line. Then you can save the file and reload the page in your browser.

If you’re a Kinsta user, you can check your .htaccess file by opening your MyKinsta dashboard and navigating to your website under Sites. Locate the SFTP/SSH section to get your credentials, then use them to connect to your site via an FTP client.

Next, navigate to the public_html folder, then locate and open the .htaccess file:

The .htaccess file of a WordPress directory

The .htaccess file of a WordPress directory

Look for either of the directives listed above. If you see any of these rules, comment them out and save your changes.

7. Review Application Logs

Your server-side logs can be invaluable for providing information about your applications, including what they did, the pages requested, the servers connected to, and more. If you’re a Kinsta user, you can check your error logs using the log viewer in MyKinsta.

If you’re not using a Kinsta hosting plan or your host doesn’t provide a logging tool, you can insert the following code into your wp-config.php file:

define( 'WP_DEBUG', true );

define( 'WP_DEBUG_LOG', true );

define( 'WP_DEBUG_DISPLAY', false );

This will enable WordPress debugging mode.

From MyKinsta, navigate to Sites > Logs:

The MyKinsta Log viewer

The Log viewer in MyKinsta

Here, you’ll find the Log viewer that displays your error logs. You can click on access.log from the dropdown menu. This is where you can find all the HTTP requests from your website. You can also look for any HTTP 408 requests using the search bar.

If you locate any errors, you can use the information to pinpoint which web page is causing the issue. This can help you narrow down the source of the problem.

8. Debug Apps or Scripts

At this point, if you’re still seeing the HTTP 408 error, it’s time to debug your site. There are a handful of options you can use for this process.

One is to use a plugin such as Query Monitor:

The WordPress Query Monitor plugin

The WordPress Query Monitor plugin

This free plugin debugs your website’s performance and development. It enables you to check database queries, scripts, timing, and more.

Another option is using an Application Performance Monitoring (APM) tool. This software helps you monitor and optimize the performance of your website or application.

Using an APM tool can help you debug your site by giving insight into its performance and the location of any bottlenecks. This information can help you identify and fix any issues causing your website to run slowly or have other performance problems.

You can use our Kinsta APM Tool. It’s a custom-designed performance monitoring tool for WordPress sites that helps you identify performance issues. It’s also free for all sites hosted with us.

You can access the Kinsta AMP via your MyKinsta dashboard by navigating to Sites > Kinsta APM:

The Kinsta APM tool

The Kinsta APM tool

Once you enable the APM, you can use a variety of tools and features. These include diagnosing performance issues and monitoring results.

 It’s easier than you may think to fix this pesky issue. 😌 Here’s how to get started… ✅Click to Tweet

Summary

HTTP status codes can provide a wide range of information about client and server requests. However, some of these messages indicate problems, such as the HTTP 408 Request Timeout error.

As we discussed in this post, the source of the issue may be either client- or server-side. To troubleshoot and resolve the status code error, you should review and roll back recent changes, check your server configuration file and application logs, and debug your apps and scripts.

Do you want to switch to hosting that provides easy access to software for identifying, testing, and fixing issues on your site? Check out our Kinsta hosting plans to learn more about our APM and development tools!

Умные люди придумали коды, по которым можно определить, что произошло с HTTP-запросом. Успешен ли он, произошло ли перенаправление. Или же все закончилось ошибкой. Как раз об ошибках и будем говорить в этой статье. Вкратце расскажу, какие они бывают и с чем связаны. 

А еще тут будет парочка забавных (и не очень) пикч и анимаций на тему описанных ошибок. Хоть какое-то развлечение.

Ошибки со стороны клиента (4xx)

Для начала перечислим коды ошибок на стороне клиента. Вина за их появление ложится на плечи обоих участников соединения.

400 Bad Request

Такой ответ от браузера можно получить в том случае, если сервер не смог правильно отреагировать на запрос со стороны пользователя. Часто код 400 возникает при попытке клиента получить доступ к серверу без соблюдения правил оформления синтаксиса протокола передачи гипертекста (HTTP). Повторный запрос не стоит отправлять до тех пор, пока не будет исправлена ошибка (или несколько из них). 

401 Unauthorized

Код 401 возникает при попытке клиента получить доступ к серверу, используя неправильные данные для авторизации. По сути, используется, когда пользователь вводит неправильный логин и пароль на ресурсе, где требуется эта информация для входа. Читайте: Как исправить ошибку 401

402 Payment Required

Эта ошибка сообщает клиенту о том, что для успешного выполнения запроса ему необходимо оплатить доступ к серверу. Изначально код 402 должен был стать неким стандартом для цифровой валюты и оплаты контента в сети. Но не срослось. До сих пор нет единого решения по поводу того, как должны выглядеть платежи в сети. Также нет и единого решения по поводу того, как стоит использовать 402. 

Все еще считается, что код существует с расчетом на будущее. Сейчас почти не используется и поддерживается не всеми браузерами.

403 Forbidden

Почти то же, что и 401. Сервер снова не разрешает к нему подключиться, хотя с запросом все в порядке. Просто нет доступа. Причем повторная авторизация с другими логином и паролем никак не помогут. Все вопросы к владельцам сервера (но не всегда). Инструкция по устранению ошибки. 

Анимация на тему 403 

Творчество на тему знаменитой киносаги

404 Not Found

Легендарная ошибка, ставшая популярным мемом. 404 оповещает клиента о том, что его запрос ведет в никуда. Код возникает, когда пользователь пытается попасть на страницу, которой не существует. Например, когда случайно ошибается при вводе ссылки и вводит ее с опечаткой. Или же пытается получить доступ к странице, которой на сайте уже нет. 

В отличие от других кодов, страницу с 404 частенько кастомизируют, создавая для нее уникальный дизайн. Мало того, что это выглядит симпатичнее, так еще и полезнее для посетителей. Можно прямо на странице с ошибкой разъяснить, что произошло и как дальше действовать.

Ошибка 404

Еще вариант оформления ошибки 404

И таких вариаций тысячи. Каждый пытается добавить в оформление что-то свое.

405 Method Not Allowed

405 сообщает клиенту о том, что метод, используемый при запросе, не разрешен. В качестве примера можно привести попытку со стороны клиента ввести данные в форму с помощью GET, когда она работает только с POST. Ну и в таком же духе. 

406 Not Acceptable

Ошибка 406 сообщает о том, что страница передает контент, который не может быть распознан клиентом. Возможно, проблема в методе сжатия или в формате страницы. Иногда сюда же приплетают неправильные настройки кодировки.

Этот код редко используют на практике, так как его появления можно избежать, предоставив пользователю информацию на сайте в том виде, который его браузер способен принять. Посетитель сайта по итогу получит не то, что ожидал, но хотя бы не ошибку.

407 Proxy Authentication Required

Этот код тоже похож на 401. Только на этот раз логин и пароль нужны не для основного сервера, а для прокси, который находится между клиентом и сервером. Обычно в теле ошибки содержится информация о том, как можно правильно пройти авторизацию и получить доступ к ресурсу.

408 Request Timeout

408 говорит нам о том, что сервер пожелал разорвать соединение с клиентом, потому что оно никак не используется. Происходит это в том случае, если сервер буквально устал ждать, пока наладится соединение с ним. Поэтому такую ошибку часто можно лицезреть после очень долгой и безуспешной загрузки какого-нибудь сайта. 

Многие серверы не отправляют никаких сообщений, а просто прерывают соединение по той же причине. На запрос уходит больше времени, чем на то полагается.

Кадр из фильма Мистер Робот 

В Мистере Роботе частенько называли серии в честь ошибок HTTP (весь четвертый сезон в нумерации 4хх). В честь 408, например, назвали восьмую серию четвертого сезона

409 Conflict

Сообщение о конфликте возникает, когда запрос со стороны клиента не соответствует тому, чего ожидает сервер. В качестве примера приводят проблемы при проверки версий, когда пользователь пытается с помощью метода PUT загрузить на сервер новый файл, но там уже имеется более новая версия того же файла. Конфликта версий можно легко избежать, загрузив корректную версию.

410 Gone

Своего рода аналог 404. Разница лишь в том, что 410 намекает на перманентность отсутствия страницы. Так что этот код стоит использовать, когда на 100% уверен, что страница ушла в небытие (ну или с текущего адреса) навсегда. В любом другом случае есть универсальный 404. 

411 Length Required

411 оповещает пользователя о том, что сервер не желает принимать запрос со стороны клиента, потому что в нем не определен заголовок Content-Length. Да, это первый код в подборке, который смогут понять только люди, сведущие в настройке серверов. По-простому уложить сущность HTML-заголовков в этот материал не получится.

412 Precondition Failed

Еще один код, сообщающий о том, что сервер отклонил запрос пользователя и не разрешает доступ к выбранному ресурсу. Проблемы возникают при неправильной настройке работы методов, отличающихся от GET и HEAD. 

413 Payload Too Large/Request Entity Too Large

Код 413 говорит нам, что запрос, который посылает клиент на сервер, слишком большой. Поэтому сервер отказывается его обрабатывать и разрывает соединение. Обычно это происходит при попытке загрузить на ресурс какой-то файл, превышающий ограничение, выставленное в настройках сервера. Соответственно, решается проблема изменением настроек сервера. 

414 URI Too Long

Чем-то этот код похож на предыдущий. Здесь тоже идет речь о превышение лимита. Только теперь это касается не запроса со стороны клиента, а длины URI. То есть ссылки. Выходит, что адрес, используемый клиентом, больше, чем тот, что может обработать сервер. Как-то так. 

Такая ошибка иногда выскакивает при попытке взломать ресурс. Сайт так реагирует на слишком частые попытки воспользоваться потенциальными дырами в безопасности.

415 Unsupported Media Type

Ошибка 415 возникает, когда клиент пытается загрузить на сервер данные в неподходящем формате. В таком случае сервер просто отказывается принимать посылаемые файлы и разрывает соединение. Как и в случае с 413. 

416 Range Not Satisfiable

Подобный ответ можно ожидать, если клиент запрашивает у сервера определенные данные, но эти данные на сервере не соответствуют запросу. То есть, грубо говоря, вы просите у сервера какой-то набор данных с заранее заданным размером, а в итоге оказывается, что размер этих данных меньше, чем объем, указанный в запросе. Серверу ничего не остается, кроме как послать вас, ведь он не обучен поведению в таких ситуациях.

417 Expectation Failed

Такая ошибка высвечивается, когда ожидания сервера не совпадают с данными в запросе клиента. Сведения об ожиданиях прописываются в заголовке Expect заранее. Так что можно ознакомиться с ними, чтобы выяснить, как решить названную проблему.

418 I’m a teapot

Код 418 можно увидеть, если сервер откажется варить кофе, потому что он чайник. Это первоапрельская шутка. Естественно, 418 не используется нигде всерьез и просто существует как дань памяти программистам-юмористам, придумавшим это в 1998 году.

Чайник на сайте Google

У Google получился такой симпатичный чайник

421 Misdirected Request

Появляется когда запрос клиента переправляется на сервер, который не может дать на него адекватный ответ. Например, если запрос был отправлен на ресурс, который вообще не настроен обрабатывать запросы извне. 

Чтобы исправить проблему, можно попробовать переподключиться к ресурсу заново или попробовать другое соединение.

422 Unprocessable Entity

Код 422 говорит, что сервер вроде бы принял запрос, понял его, все хорошо, но из-за семантических ошибок корректно обработать не смог. Значит, где-то в запросе затаилась логическая ошибка, мешающая корректному взаимодействию клиента и сервера. Надо ее найти и исправить.

423 Locked

Обычно на этот код напарываются, когда запрашиваемый ресурс оказывается под защитой. Используемые клиентом методы блокируются на уровне сервера. Это делается, чтобы обезопасить данные, хранящиеся на защищенной странице. Без логина и пароля выудить информацию с такого сервера не получится.

424 Failed Dependency

424 сообщает о том, что для выполнения запроса со стороны клиента успешно должна завершиться еще одна или несколько параллельных операций. Если какая-то из них «провалится», то «помрет» все соединение сразу, и обработать запрос до конца не получится. Аналогичное происходит, если некорректно был обработан один из предыдущих запросов.

425 Too Early

Появляется в ответ на запрос, который может быть моментально запущен заново. Сервер не рискует и не берется за его обработку, чтобы не подставиться под так называемую «атаку повторного воспроизведения».

426 Upgrade Required

Тут нам прямо сообщают, что сервер не желает с нами общаться, пока мы не перейдем на более современный протокол. Наткнуться на такую ошибку очень тяжело, но в случае появления, скорее всего, будет достаточно установить браузер посвежее.

428 Precondition Required

428 выскакивает, если пользователь отправляет запрос на сервер, но получает некорректные или неактуальные данные. Так ресурс оповещает о необходимости внести в запрос информацию о предварительных условиях обработки данных. Только так он сможет гарантировать получение клиентом нужной информации.

429 Too Many Requests

Здесь все просто. Ошибка появляется, когда клиент отправляет на сервер слишком много запросов в короткий промежуток времени. Очень похоже на поведение взломщиков. По этой причине запрос моментально блокируется. 

Ошибка 429

431 Request Header Fields Too Large

Из названия понятно, что ошибка с кодом 431 появляется из-за того, что в запросе клиента используются слишком длинные заголовки (неважно, один или несколько из них). Исправляется это с помощью сокращения заголовков и повторной отправки запроса. В теле ошибки обычно отображается краткая информация о том, как пользователь может решить эту проблему самостоятельно.

444 No Response

Этот код вам вряд ли удастся увидеть. Он отображается в лог-файлах, чтобы подтвердить, что сервер никак не отреагировал на запрос пользователя и прервал соединение. 

449 Retry With

Код используется в расширениях компании Microsoft. Он сигнализирует о том, что запрос от клиента не может быть принят сервером. Причиной становятся неверно указанные параметры. Сама 449 ошибка говорит о необходимости скорректировать запрос и повторить его снова, подготовив к работе с сервером.

450 Blocked by Windows Parental Controls

450 код увидят дети, попавшие под действие системы «Родительский контроль» компании Microsoft. По сути, ошибка говорит о том, что с компьютера попытались зайти на заблокированный ресурс. Избежать этой ошибки можно изменением параметров родительского контроля.

451 Unavailable For Legal Reasons

Этот код сообщает клиенту, что он не может попасть на запрашиваемый ресурс из юридических соображений. Скорее всего, доступ был заблокирован из-за каких-нибудь государственных санкций, нового законодательства или цензуры со стороны властей. В общем, все вопросы к государству и провайдеру связи.

Лого Роскомнадзора

Читайте также

Ошибка сервера 504

Ошибка сервера 403

Комьюнити теперь в Телеграм

Подпишитесь и будьте в курсе последних IT-новостей

Подписаться

Список ошибок на стороне сервера (5xx)

Теперь поговорим об ошибках, которые возникают где-то на сервере. Все они связаны с запросами, которые не удается обработать на том конце. Пользователь зачастую в их появлении не виноват.

500 Internal Server Error

Этот код возникает, когда сервер сталкивается с непредвиденными обстоятельствами. Такими, которые и сам не может пояснить. Как, собственно, и завершить запрос со стороны пользователя. По факту, эта ошибка говорит нам что-то вроде «Я не могу подобрать более подходящий код ошибки, поэтому лови 500 и делай с этим, что хочешь». Мы писали о нем чуть подробнее тут.

Ошибка 500

Дело не в тебе, дело во мне (С)

 Синий экран смерти

501 Not Implemented

501 говорит нам, что функциональность, необходимая для обработки запроса со стороны клиента, попросту не реализована на сервере. Он не сможет корректно обработать используемый метод. 

Иногда в теле ошибки еще пишут что-то в духе «Приходите попозже, возможно, в будущем нужная функция появится».

502 Bad Getaway

Можно встретить в том случае, если запрашиваемый сервер выступает в роли шлюза или прокси. Возникает из-за несогласования протоколов между вышестоящим серверов и его шлюзом. Рассказываем о том, как ее исправить, в этой статье. 

503 Service Unavailable

Появляется, когда сервер не может обработать запрос клиента по одной из двух технических причин:

  1. Слишком много пользователей в текущий момент пытаются отправить запросы, и у сервера не остается ресурсов, чтобы ответить кому-либо еще.
  2. На сервере ведутся технические работы, временно блокирующие его работу.

Обычно ошибка 503 носит временный характер, и для ее решения достаточно немного подождать. 

504 Gateway Timeout

Ошибка похожа на 408. Здесь же прокси-сервер пытается выйти на контакт с вышестоящим сервером, но не успевает это сделать до истечения тайм-аута. Отсюда и ошибка.

 Вариант оформления ошибки 504

505 HTTP Version Not Supported

Этот код похож на 426. Он тоже связан с неподходящей версией протокола HTTP. В этом случае нужно обеспечить и клиента, и сервер единой версией. Она, как правило, указывается в запросе со стороны пользователя. 

506 Variant Also Negotiates

Обычно с такой ошибкой сталкиваются только в том случае, если сервер изначально настроен неправильно. То есть это не сиюминутная проблема, а что-то серьезное на уровне базовой конфигурации. Тут придется потрудиться разработчикам. Выявить проблему и разрешить ее.

507 Insufficient Storage

Код 507 встречается в тех ситуациях, когда серверу не хватает пространства в хранилище для обработки запроса со стороны клиента. Проблема решается освобождением места или расширением доступного пространства. Тогда сервер сможет без проблем обработать запрос пользователя.

508 Loop Detected

Таким кодом сервер отзовется в случае, если заметит бесконечный цикл в запросе клиента. Можно расценивать его как провал запроса и выполняемой операции в целом.

509 Bandwidth Limit Exceeded

Возникает, если сервер начинает потреблять больше трафика, чем ему позволено. 

510 Not Extended

Появляется, если клиент посылает запрос на использование какого-либо расширения, отсутствующего на сервере. Чтобы исправить проблему, надо убрать декларирование неподдерживаемого расширения из запроса или добавить поддержку на сервер.

511 Network Authentication Required

511 код говорит о том, что перед тем как выйти в сеть, надо авторизоваться (ввести логин и пароль). Можно воспринимать это неким PPPoE подключением, когда от клиента требуются данные для авторизации.

Заключение

Закончили. Это все ошибки, которыми отзывается HTTP, если на стороне сервера или клиента что-то пошло не так. Наткнуться на большую их часть довольно тяжело. Особенно, если вы раньше только серфили в интернете, а не занимались разработкой сайтов. А тем, кто входит в эту стезю, полезно знать основные ошибки, так как, скорее всего, придется не раз их исправлять. 

HTTP response status code 408 Request Timeout is a client error that is returned by the server to indicate that a request is coming in too slowly from a client and it is unwilling to wait for it to be completed, thus terminating the connection.

Usage

When the 408 Request Timeout error message is received, it means that a client has initiated a request but for some reason, it has not been transmitted in full. This may occur because an internet connection is very slow, or has been dropped. The response will include the Connection header, specifying that it has been closed.

Upon receiving the Connection: close header, the client can attempt the request again.

Note

Search engines like Google will not index a URL with 408 Request Timeout response status, and consequently, URLs that have been indexed in the past but are now returning this HTTP status code will be removed from the search results.

Example

In the example, the client begins to send a 10K PDF file to the server, but the connection is suffering from intermittent connectivity issues and the server concludes that the transmission, in its entirety, is too slow. As such, it cancels the HTTP request and closes the connection. Sometime later, when the connection is more stable, the client attempts to retransmit the file and it is successful.

Initial request

PUT /docs HTTP/1.1
Host: www.example.ai
Content-Type: applications/pdf
Content-Length: 10000

Initial response

HTTP/1.1 408 Request Timeout
Connection: Close
Content-Type: text/html
Content-Length: 198

<html>
  <head>
    <title>Connection Close</title>
  </head>
  <body>
   <p>The transmission was not received quickly enough. Check internet connectivity and please try again.</p>
  </body>
</html>

Next request

PUT /docs HTTP/1.1
Host: www.example.ai
Content-Type: applications/pdf
Content-Length: 10000

<File transfer successful for PDF file>

Final response

HTTP/1.1 200 OK

Code references

.NET

HttpStatusCode.RequestTimeout

Rust

http::StatusCode::REQUEST_TIMEOUT

Rails

:request_timeout

Go

http.StatusRequestTimeout

Symfony

Response::HTTP_REQUEST_TIMEOUT

Python3.5+

http.HTTPStatus.REQUEST_TIMEOUT

Java

java.net.HttpURLConnection.HTTP_CLIENT_TIMEOUT

Apache HttpComponents Core

org.apache.hc.core5.http.HttpStatus.SC_REQUEST_TIMEOUT

Angular

@angular/common/http/HttpStatusCode.RequestTimeout

Takeaway

The 408 Request Timeout status code is a client error that the server sends when an HTTP request is taking too long to complete. Common reasons for this are slow or broken internet connections. If the connection is restored, the client can make the request again.

See also

  • Connection
  • 504 Gateway Timeout
  • RFC 7231

Last updated: June 29, 2022

How to Fix the 408 Request Timeout Error

Are you familiar with the frustration of encountering a 408 Request Timeout error while browsing a website?

This error occurs when your web browser fails to receive a timely response from the server, disrupting your browsing experience.

But don’t worry! This step-by-step guide will help you troubleshoot and fix the annoying HTTP 408 Request Timeout error.

Whether you’re unsure about the meaning of the error message or what’s causing it, we’ve got you covered. So let’s delve into the HTTP 408 status code, explore its common causes, and present you with potential solutions to get you back to smooth browsing.

  • What Does the HTTP 408 Error Code Mean
  • Exploring Common Causes of the HTTP 408 Request Timeout Error
  • How to Resolve the HTTP 408 Error (8 Easy Solutions)
    • Addressing the Issue on the Client Side
    • Addressing the Issue on the Server-Side
  • Tips to Avoid a 408 Request Timeout Error

What Does the HTTP 408 Error Code Mean

HTTP 408 status code is returned when a server timeout occurs due to a slow client request. It means the server terminated the connection, resulting in the client receiving the 408 Request Timeout message.

HTTP status codes communicate request status and can redirect clients to different resources. Common codes include:

  • 200 (OK)
  • 400 (Bad Request)
  • 500 (Internal Server Error)

These status codes can be categorized into 5 groups:

Error Codes What They Mean
Informational The server is still processing the request
Successful The request has been successfully fulfilled
Redirects The client should be redirected to a different resource
Client Errors There was an error with the client’s request
Server Errors There was an error with the server

It is worth mentioning that the HTTP 408 error differs from the 504 Gateway Timeout status code, which is typically associated with the gateway or proxy servers. In contrast, the 408 error is directly generated by the web server with which the client is communicating.

WordPress Hosting Tailored for Developers & Agencies

Unlock your full potential as a developer or agency: Amplify productivity, deliver exceptional client experiences, and scale with ease.

Exploring Common Causes of the HTTP 408 Request Timeout Error

The occurrence of a 408 Request Timeout error can be attributed to various factors. Let’s delve into the 5 common triggers:

1. Server Overload

When a server becomes overwhelmed with numerous incoming requests, it may struggle to respond to all of them within the allocated time. Consequently, some requests may time out, resulting in the 408 error.

2. Network Issues

A weak or unreliable internet connection can also contribute to a 408 Request Timeout error.

3. Large File Downloads

Attempting to download large files, such as videos or images, can lead to a 408 Request Timeout error. If the server slowly transmits the file, the browser may assume the request has failed due to the extended waiting time.

4. Server Maintenance

During server maintenance or updates, the server may undergo temporary periods of unavailability. Accessing the server during these times can result in a 408 error as it cannot respond to the request.

5. Firewall or Security Settings

In some cases, strict firewall or security settings can interfere with the communication between your browser and the server. This can result in a request timeout if the server’s response is blocked or delayed.

6. Proxy Server Issues

If you are using a proxy server to connect to the internet, misconfigured settings or connection problems with the proxy server can cause a 408 error. The proxy server may fail to establish a timely connection with the destination server, resulting in a timeout.

If you’re experiencing some other issue, you might want to check out our guide on common WordPress issues.

How to Resolve the HTTP 408 Error (8 Easy Solutions)

Now that we have understood the HTTP 408 status code, let’s explore the solutions to resolve it. Below, we will discuss potential remedies from both the client-side and server-side perspectives.

Addressing the Issue on the Client Side

Client-side refers to the user’s side, where the web browser or application is making the request to the server. Client-side issues can include network problems, browser settings, or large file downloads that may cause the request to time out.

Here are a few solutions from the client side that can help resolve the HTTP 408 error:

1. Review Recent Database Modifications

Consider recent database changes as a potential cause of the HTTP 408 error. Revert any recent modifications to resolve the issue.

Pay attention to the installed extensions or updates that may have altered database records, leading to conflicts or errors. For example, check a specific table modified by a new plugin using a database management tool like phpMyAdmin.

Also, manually review recently modified tables or records for changes causing the HTTP 408 error. Revert problematic alterations to their original states.

2. Perform a Site Backup

You should prioritize website backup as a precaution for troubleshooting the HTTP 408 error. We recommend creating a comprehensive backup to secure your files and database.

There are various methods available to back up your website. Below are the two easy approaches for website backup:

Methods for website backup:

Method #1. Manual method using SFTP client like FileZilla:

  • Obtain SFTP credentials from the hosting provider.
  • Connect to the server and download files from the root directory (typically in the public_html folder).

Method #2. Cloudways users:

  • Use the Cloudways platform to create backups conveniently and ensure data safety.

First, we’ll cover backup creation using the Cloudways platform, then explore the manual backup process.

How to Backup Your Application Using the Cloudways Platform

Here is a step-by-step guide on how to download the backup of your application from the Cloudways platform to your local computer:

  • Step 1: Log in to the Cloudways platform and select the target server.

Log in to the Cloudways platform

  • Step 2: Go to Backups in the left menu and enable Local Backups.

Optional: Click Take Backup Now for an immediate backup.

Take Backup

  • Step 3: Connect to your server via SFTP (Secure File Transfer Protocol) using your Master Credentials to establish the remote server connection.

Connect to your server via SFTP

  • Step 4: Navigate to /applications/<your_application_name>/local_backups.

Note: Only the most recent backup is available locally. Off-site backups follow the scheduled frequency and settings.

By following these steps, you will successfully backup your application using the Cloudways platform.

How to Manually Backup & Download WordPress Files Via an FTP Client

To backup your WordPress files using an FTP client, follow these steps:

  • Navigate to your WordPress site’s root directory.

Navigate to your WordPress site’s root directory

  • Set up an FTP connection with the destination storage using FTP credentials, host IP address, and port number.
  • Launch an FTP client like FileZilla.
  • Enter the credentials and click on “Quickconnect” to initiate a connection with the server.

Set up an FTP connection

  • Select all the files and folders you want to back up. These typically include the entire WordPress installation directory.
  • Download the selected files and folders to your local host or storage location.

Note: Using the backup functionality provided by the Cloudways platform offers a simpler and user-friendly experience. It saves time and effort compared to manual FTP backups.

3. Verify the URL

Sometimes, the HTTP 408 error can occur if a URL requiring specific credentials is accidentally requested, resulting in a request timeout.

Possible cause: Mistyping the URL in the browser. We recommend doing the following measures:

  • Check the URL for typos, including the domain name, slashes, and hyphens.
  • Re-enter the URL and refresh the page if a typo is suspected.

If the request timeout error persists, proceed to the next troubleshooting step.

408 request time out

4. Revert Recent Updates

To roll back recent changes and resolve the HTTP 408 error on your WordPress site, consider restoring your site to a previous version if recent changes (e.g., new plugin installation or WordPress update) caused the error.

And if you’re a Cloudways user, you can take advantage of its point-in-time restore feature, which includes automated offsite server-level backups and on-demand application-level backups.

Note: Cloudways Autoscale users can refer to this specific guide for instructions.

Now let’s restore a point-in-time backup using Cloudways Flexible:

  • Log in to the Cloudways Platform.
  • Navigate to “Servers” and select the server with your desired application.

Log in to the Cloudways platform

  • Click on the application name under the “www” section.

Click on the application name under the (www) section

  • Under “Application Management,” select “Backup and Restore.”

Under Application Management, select Backup and Restore.

  • Select the desired restore point from the dropdown.
  • Click “Restore Application Now.”

Important considerations:

  • Ensure sufficient disk space before restoring.
  • Choose complete restore or specific file/database restore based on your needs.

Choose complete restore or specific filedatabase restore

  • Restore duration depends on application data size.
  • You will receive a notification upon completion.

By following these steps, you can perform a point-in-time restore of your Cloudways application, helping you revert to a previous version and potentially resolving the HTTP 408 error.

5. Remove Extensions and Plugins

Adding extensions and plugins to your website can sometimes lead to compatibility issues and errors, including the HTTP 408 status code. To investigate if this is the cause, you can perform the following steps:

  • Deactivate all plugins in the WordPress dashboard:
    • Navigate to the Plugins section and select all installed plugins.
    • From the Bulk Actions dropdown menu, choose “Deactivate” and click “Apply.”

Deactivate all plugins in the WordPress dashboard

  • Alternative deactivation method: In case you are unable to access the dashboard, you can connect to your site via SFTP and rename the plugins folder to something like “plugins_old”. This action will effectively deactivate all plugins.
  • Check if the error is resolved after deactivation. Reactivate plugins one by one and observe if the error reoccurs. Identify the problematic plugin causing the error.
  • Uninstall the problematic plugin and consider finding a suitable alternative or contacting the developer for further assistance.

By systematically deactivating and reactivating plugins, you can identify and resolve the plugin-related cause of the HTTP 408 error on your website.

Addressing the Issue on the Server-Side

Server-side refers to the server receiving and processing the client’s requests. Server-side issues can include server overload, maintenance, or misconfigurations that lead to the server being unable to respond within the allocated time, resulting in the 408 error.

The issue likely lies on the server side if the previous solutions did not resolve the HTTP 408 error. In such cases, it is necessary to explore alternative solutions to resolve the error.

6. Review Application Logs

You can troubleshoot the HTTP 408 error from a server-side perspective in two ways.

If you use WordPress, you can access logs by enabling the WordPress debugging mode in the wp-config.php file. Simply insert the following code:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

For Cloudways users, monitoring application logs through the Cloudways Platform offers a convenient option. Here’s how you can do it:

  • Log in to the Cloudways Platform and select your desired application.
  • Navigate to the “Monitoring” section and click on “Logs.”
  • Click the “Access Logs” section to view recent log entries or the “Error Logs” to view recent Apache error logs.

By accessing and analyzing server-side logs, you can gather crucial information to diagnose and address the HTTP 408 error from a server-side perspective.

7. Troubleshoot Apps or Scripts

Debugging refers to the process of identifying and resolving bugs or errors in your code. If you are still encountering the HTTP 408 error on your website, it is necessary to debug your site. To simplify the bug monitoring process for your WordPress site, you can utilize WordPress debugging plugins.

Take Control of Your WordPress Projects with Cloudways

Enjoy robust features like easy scalability, one-click staging, advanced security, and blazing-fast performance.

1. Query Monitor

Query Monitor

Query Monitor is a WordPress plugin that adds a developer tool panel to your WordPress dashboard. It offers database queries, PHP errors, HTTP API calls, hooks and actions, editor block disabling, and enqueued scripts and stylesheets.

With Query Monitor, you can gather extensive information for effective debugging.

2. New Relic

New Relic

Another option for comprehensive debugging is New Relic, a premium tool. It provides monitoring of user experience, mapping the WordPress architecture, identifying broken permalinks, analyzing site performance, and proactively detecting anomalies.

New Relic helps you gather troubleshooting data and ensures an optimal experience for your visitors.

Troubleshooting via Application Performance Monitoring

Another option is utilizing an Application Performance Monitoring (APM) tool to help you monitor and optimize your site’s performance.

Here’s how you can use the New Relic APM feature on the Cloudways platform to monitor your application:

  • Log in to your New Relic account.

Log in to your New Relic account

  • Open the User Menu and select API Keys.
  • Locate your license key labeled as “Original account license key.” Click on the ellipsis (…) to view more options.
  • Copy your license key.

Copy your license key

  • Log in to the Cloudways Platform.
  • Go to Servers and choose the desired server.

Log in to the Cloudways platform

  • Under Server Management, select Monitoring and switch to the New Relic tab.

Under Server Management, select Monitoring and switch to the New Relic tab

  • Enter your New Relic License Key and save the changes.

Enter your New Relic License Key and save the changes

  • Enable the New Relic service in Server Management > Manage Services.

Enable the New Relic service in Server Management Manage Services

  • Start monitoring your applications through New Relic APM.

Using WordPress debugging plugins or premium tools like New Relic and employing an APM tool can simplify your WordPress site’s monitoring and troubleshooting process, enhancing its functionality.

8. Validate Server Configuration Files

If you are still experiencing the HTTP 408 error and want to identify its cause, you can check your server configuration files using SFTP. The specific steps may vary depending on whether your server is running on Apache or Nginx.

For Apache users:

  • Locate the .htaccess file in your site’s root directory.
  • Open the file and search for the lines containing “KeepAliveTimeout” and “RequestReadTimeout”.
  • Comment out these lines by adding “#” at the beginning of each line.
  • Save the file and then reload the page in your browser.

In the case of a WordPress site hosted on an Apache Web Server, follow these steps to access and edit the .htaccess file:

  • Connect to your server using an FTP client like FileZilla.

Connect to your server using an FTP client like FileZilla

  • Navigate to the root folder of your WordPress application (e.g., “/applications/sqzucfcyqb/public_html”).
  • Locate the .htaccess file within the “public_html” folder.

Locate the .htaccess file within the public_html folder

  • Right-click on the file and select the “View/Edit” option to open it in a text editor.

Right-click on the file and select the ViewEdit option to open it in a text editor

  • Make the necessary changes to the file and save it.

Following these steps, you can fix the HTTP 408 Request Timeout error.

Unleash Your Agency’s Potential with Managed WordPress Hosting

Experience the freedom and efficiency your agency deserves: Streamline workflows, optimize resources, and exceed client expectations.

4 Tips to Avoid a 408 Request Timeout Error

Here are 5 effective measures to prevent a 408 Request Timeout error and improve your browsing experience:

1. Use a Reliable Internet Connection:

Ensure you have a stable Internet connection to minimize the chances of encountering a 408 error. Consider upgrading your plan or switching to a different Internet service provider if necessary.

2. Keep Your Browser and Operating System Up-To-Date:

Regularly update your browser and operating system to avoid compatibility issues and ensure a smooth and secure browsing experience.

3. Clear Your Browser Cache Regularly:

Periodically clear your browser cache to prevent website loading issues. This can be done by accessing your browser settings and clearing the cache manually or setting up automated cache clearing at regular intervals.

4. Avoid Downloading Large Files:

Downloading large files can strain the server and increase the likelihood of a 408 error. Consider using a download manager or splitting large files into smaller parts to avoid encountering this problem.

5. Disable or Adjust Firewall and Security Settings:

In some cases, overactive firewall or security settings can interfere with the communication between your browser and the server, resulting in a request timeout. Temporarily disabling or adjusting these settings can help troubleshoot the issue.

Summary

The 408 Request Timeout error occurs when the server terminates the connection due to a request taking too long to complete. And resolving this error involves taking several steps to identify and address the underlying causes. Here’s a summary of the key actions to take:

  • Review recent changes: Roll back any recent website or server configuration modifications that may be causing the timeout error.
  • Check server configuration and logs: Analyze your server configuration files and application logs to detect any misconfigurations or errors that could be causing the issue.
  • Debug applications and scripts: Identify and address any coding errors or inefficiencies in your applications and scripts that could be causing the request timed out error.

By following these troubleshooting steps, you can increase your chances of resolving the 408 error and improving your overall browsing experience.

Remember to maintain a stable internet connection, keep your browser and operating system up to date, avoid downloading large files excessively, and regularly clear your browser cache to minimize the risk of encountering timeout errors.

Other 4XX Errors and How to Fix Them

  • How to Fix WordPress 403 Forbidden Error
  • How to Fix 405 Method Not Allowed in WordPress
  • Fix the “413 Request Entity Too Large” Error in WordPress
  • How to Fix 429 Too Many Requests Error in WordPress
  • Fix the “413 Request Entity Too Large” Error in WordPress

FAQs

How do I fix a 408 request timeout step by step?

Follow the steps below to fix a 408 request timeout error:

  • Safely back up your website.
  • Verify the accuracy of the URL.
  • Evaluate recent database modifications.
  • Remove or disable extensions and plugins.
  • Revert recent changes to your website.
  • Review server configuration files.
  • Examine application logs for insights.
  • Debug applications or scripts as needed.

What causes a 408 error?

A 408 Request Timeout error typically occurs when the server terminates the connection because the requested operation exceeds the timeout period. It happens when the server waits for additional information from the client, which is not provided within the specified timeframe. Resultingly, the server sends a 408 Request Timeout message to the client, indicating a delayed request.

How does Error 408 affect the speed of your webpage?

Error 408, or the Request Timeout error, does not directly affect webpage speed. It is a communication issue between the client and the server. The impact on webpage speed is minimal.

Share your opinion in the comment section.
COMMENT NOW

Share This Article

Customer Review at

“Beautifully optimized hosting for WordPress and Magento”

Arda Burak [Agency Owner]

Abdul Rehman

Abdul is a tech-savvy, coffee-fueled, and creatively driven marketer who loves keeping up with the latest software updates and tech gadgets. He’s also a skilled technical writer who can explain complex concepts simply for a broad audience. Abdul enjoys sharing his knowledge of the Cloud industry through user manuals, documentation, and blog posts.

When you visit websites on the internet, you access them through your web browser. The basis for this transmission, which is handled by default through TCP, is the stateless protocol HTTP (“Hypertext Transfer Protocol”), which describes the initial exchange of messages between web server and browser. According to the classic client-server principle, the browser issues an HTTP request, after which the server sends back a response which includes a status code.

While you don’t notice most of this communication as a user, the situation is usually different when it comes to HTTP error codes: if a problem occurs during the exchange, the browser often presents corresponding code in the 4xx and 5xx series, which stand for various client or server-side error sources. For example, the HTTP 408 message tells you that the client request timed out. How, exactly, this timeout occurs and how you can solve the problem will be explained in this guide.

What does the http 408 error code mean?

The HTTP error code 408 – like all members of the 4xx error series – is one of the messages that indicate a client-side problem. When you go into the background of this error message in more detail, however, it becomes clear that it does not necessarily have to be a browser malfunction: Error 408 is linked to “Request Timeout” information, which simply means that the request sent from the client to the web server took more time than the web server allows for. As a result, the browser receives the HTTP 408 message instead of the actual response. Of course, this may be due to problems with your internet connection, but it cannot be ruled out that the timeout is the result of an overload or incorrect configuration of the web server.

An overview of possible reasons for “408: Request Timeout” error messages

Although there are over 50 different  HTTP status codes, more than half of which are error messages, these messages often only prove to be a rough guideline for the following problem solution. This also applies to error code 408, which basically just says that too much time has passed in a prescribed time interval after establishing at TCP/IP connection without data transferring through the connection. However, there are several possible causes for this delay, and for the subsequent error messages, for example:

  • Bandwidth problems and disconnections: HTTP 408 messages often result from problems with your internet connection. For example, the bandwidth may be so low that the HTTP request fails due to the defined time interval. It is also possible that the internet connection to the server was temporarily interrupted after the TCP/IP connection was established, so the request data might not have been completely sent.
     
  • Trying to access incorrect or inaccessible URLs: Not every website URL is available to visitors without encryption. If you inadvertently try to access a page that you have no authorization for, or you try to access an HTTPS page that doesn’t have an SSL/TLS activated, a 408 timeout could certainly occur. In addition, many URLs have restrictions regarding the permitted HTTP request methods (GET, POST, HEAD, PUT, and so on), so the timeout can also be the result of an incorrectly applied method. In both cases, however, there are also standard messages that indicate the problem (“403: Forbidden“ for unauthorized access attempts and “405: Method Not Allowed” for unavailable HTTP methods).
     
  • Incorrect web server configuration: Regardless of the web server software used, the website runner specifies how many seconds an HTTP request should be rejected in the respective configuration file. There are separate values for the header and the body of the HTTP messages. If the server chooses too short a time interval for processing one or both package components, this may well be the reason for the 408 error on user pages.
     
  • Plugins, extensions, modules, etc.: A problem that can be both a client-side and a server-side problem is the use of faulty or outdated extensions. Therefore, both the browser plugins used by the website visitor and the CMS modules used by the operator could be responsible for the HTTP timeout and cause the HTTP 408 error.

HTTP-408: how to solve the http timeout problem as a browser user

If you are confronted with a “408: Request Timeout” message when visiting a website, you are naturally interested in the quickest possible solution to the problem. However, you cannot always fix the problem on your own. If the error is exclusively on the client side, chances are good that you can correct the 408 error using one of the following approaches.

Solution 1: check URL

Before you go on more intensive troubleshooting, your very first look should be at the URL you entered. The URL you have chosen might no longer be accessible to you. This happens in particular if you try to access the targeted website using old bookmarks. If the website in question has made changes to permissions or permitted request methods in the interim, or has switched to HTTPS, it is very likely that the saved link will no longer lead to the website, but instead the HTTP-408 or comparable error messages. So make sure that the URL you entered is correct and up to date to avoid this error source.

Solution 2: check internet connection and restart router

Problems with an internet connection are always a nerve-racking affair. Sometimes, the connection no longer works at all, so access to the web remains completely closed. While you will inevitably notice these complete failures, in most cases you won’t notice any temporary fluctuations or connection interruptions. So, the cause for slow loading times and error messages during loading – like the 408 error – should be quick to find on the visited website. For this reason, it is recommended that you check your own network connection by visiting other websites or performing a DSL speed test, for example.

If you find that there are technical difficulties with your access, you should reboot your router. If the connection problem persists, you should contact your internet provider.

To display this video, third-party cookies are required. You can access and change your cookie settings here.

Solution 3: disable browser extensions

With plugins, addons, or extensions, web browser functions can be extended with just a few clicks. However, the practical extensions do not always work as desired – in the worst case, they make the surfing experience worse and cause error messages like HTTP-408, often because the extensions are outdated and/or no longer compatible with the current browser version, since they are no longer actively developed. To test whether the timeout error is due to one or more included extensions, temporarily deactivate them completely. Once the problem is resolved, you can turn on the plugins one by one to find out which was responsible for the HTTP error message.

Solution 4: try to access the website at a later time

The “408: Request Timeout” error cannot always be corrected using the suggestions listed above – e.g. if it is due to prolonged problems with your network connection. In this case, it is advisable that you wait and try again at a later date. If the HTTP exchange still fails, it is highly likely that the cause of the error lies in the web server. If the responsible website has provided appropriate contact data, you can find out whether they are aware of the problem and when the page will be available as usual again.

To display this video, third-party cookies are required. You can access and change your cookie settings here.

How to fix HTTP Error 408 if you run a website

While the HTTP timeout problem is primarily annoying for visitors because the target page cannot be opened, its impact on website operators can be much bigger. If many users are confronted with the error message over a longer time, this not only has a negative effect on traffic, but also on the website’s reputation. In addition, there is also the threat of punishment by search engines if HTTP 408 errors occur more frequently of if a correction takes too long. If you are responsible for a website, you should take immediate action once you discover the issue.

Solution 1: check web server configuration

Incorrect settings are among the most common server-side HTTP error code causes (like “408: Request Timeout”). You should check the respective file first, either on Apache (httpd.conf; apache2.conf), NGINX (nginx.conf), or others. In Apache web server settings, for example, the directives “KeepAliveTimeout” and “RequestReadTimeout” deserve special attention. Both specify a time interval for incoming HTTP requests, which may be too low (15 or even 30 seconds is recommended). If your website runs on an NGINX server, the directives are “keepalive_timeout,” “client_body_timeout,” and “client_header_timeout.” Do not forget to save the changes to the respective configuration file before starting the web server to finally resolve the HTTP 408 problem.

Solution 2: inspect server logs and customize problematic pages

As mentioned above, HTTP error 408 only occurs on one page or individual pages on a website because those pages have configuration errors with their action rights and permitted HTTP methods. So if you discover a timeout problem, it is recommended to check which URL(s) are causing the HTTP error. To avoid having to access each page manually, just take a look at your web server’s error log file, where all the HTTP errors are automatically archived. Once you have identified the problematic pages, you can search for specific causes for the timeout and, if necessary, make changes to the access rights and methods.

Note

You can usually also view the web server error logs if you are hosting your website with a web hosting provider. To do this, log onto the respective customer account, which should include a section with server statistics including downloadable server logs. If you cannot find the corresponding menu item on your own, the FAQ area or provider’s service team should be able to help.

Solution 3: deactivate obsolete, faulty modules, templates, and plugins in the CMS

Content management systems are in high demand as a basis for websites. A major advantage of these platforms is their high degree of extensibility through modules, templates, and plugins, which provide additional functions, layouts, and designs. These extensions, like their client-side counterparts, can also be responsible for the 408 request timeout. In the abundance of additional modules and plugins, there are always representatives who promise a huge added value for their own product, but in the end they don’t work the way they should or stop being developed at a certain point. This is especially true for extensions from third-party vendors, where there may be problems with every new CMS version. The simple solution is to disable plugins (and modules if necessary).

Note

Even if all modules and plugins work properly, the extensions can cause errors like the HTTP-408 error: if you use too many extensions in your CMS, this can negatively affect the performance of your website. Make sure you switch off any unnecessary or no longer required additional functions and design components in time to be able to exclude these scenarios.

Solution 4: check and repair code

Of course, the error does not always have to be traced back to an external source, but can just as easily be hidden in your own code. If you are dealing with error code 408 and have not yet found a solution, either during the web server configuration file inspection or during the content management system check, it is advisable to look at the HTML framework, as well as the built-in CSS snippets and scripts (JavaScript, PHP, etc.). Do not hesitate to perform a complete debugging process with the appropriate software if the timeout problem cannot be solved any other way. This allows you to efficiently locate and repair faulty code.

To display this video, third-party cookies are required. You can access and change your cookie settings here.

Solution 5: increase server resources

The more HTTP requests reach the web server, the more resources it needs for processing. If the available computing power is not sufficient to handle the incoming traffic, error messages like “408: Request Timeout” are not uncommon. If your budget allows, you should consider increasing processor performance and memory.

Note

If your server’s performance is poor despite having sufficient resources, this may indicate technical problems with your hosting provider. Under these circumstances, you cannot correct an HTTP error 408 by posting additional service components. Your only option is to contact the provider directly to get detailed information for possible troubleshooting.

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Html типичные ошибки
  • Html ошибка 504
  • Html ошибка 401
  • Html ошибка 400

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии