Коды ошибок ftp

FTP server return codes always have three digits, and each digit has a special meaning.[1] The first digit denotes whether the response is good, bad or incomplete:

Range Purpose 1xx Positive Preliminary reply

The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply would be in violation of protocol; but server-FTP processes should queue any commands that arrive while a preceding command is in progress.) This type of reply can be used to indicate that the command was accepted and the user-process may now pay attention to the data connections, for implementations where simultaneous monitoring is difficult. The server-FTP process may send at most, one 1xx reply per command.

2xx Positive Completion reply

The requested action has been successfully completed. A new request may be initiated.

3xx Positive Intermediate reply

The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups.

4xx Transient Negative Completion reply

The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again. The user should return to the beginning of the command sequence, if any. It is difficult to assign a meaning to «transient», particularly when two distinct sites (Server- and User-processes) have to agree on the interpretation. Each reply in the 4xx category might have a slightly different time value, but the intent is that the user-process is encouraged to try again. A rule of thumb in determining if a reply fits into the 4xx or the 5xx (Permanent Negative) category is that replies are 4xx if the commands can be repeated without any change in command form or in properties of the User or Server (e.g., the command is spelled the same with the same arguments used; the user does not change his file access or user name; the server does not put up a new implementation.)

5xx Permanent Negative Completion reply

The command was not accepted and the requested action did not take place. The User-process is discouraged from repeating the exact request (in the same sequence). Even some «permanent» error conditions can be corrected, so the human user may want to direct his User-process to reinitiate the command sequence by direct action at some point in the future (e.g., after the spelling has been changed, or the user has altered his directory status.)

6xx Protected reply

RFC 2228 introduced the concept of protected replies to increase security over FTP communications. The 6xx replies are Base64 encoded protected messages that serves as responses to secure commands. When properly decoded, these replies fall into the above categories.

Below is a list of all known return codes that may be issued by an FTP server.

Code Explanation 100 Series The requested action is being initiated, expect another reply before proceeding with a new command. 110 Restart marker replay . In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is User-process data stream marker, and mmmm server’s equivalent marker (note the spaces between markers and «=»). 120 Service ready in nnn minutes. 125 Data connection already open; transfer starting. 150 File status okay; about to open data connection. 200 Series The requested action has been successfully completed. 202 Command not implemented, superfluous at this site. 211 System status, or system help reply. 212 Directory status. 213 File status. 214 Help message. Explains how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user. 215 NAME system type. Where NAME is an official system name from the registry kept by IANA. 220 Service ready for new user. 221 Service closing control connection. Logged out if appropriate. 225 Data connection open; no transfer in progress. 226 Closing data connection. Requested file action successful (for example, file transfer or file abort). 227 Entering Passive Mode (h1,h2,h3,h4,p1,p2). 228 Entering Long Passive Mode (long address, port). 229 Entering Extended Passive Mode (|||port|). 230 User logged in, proceed. 232 User logged in, authorized by security data exchange. 234 Server accepts the security mechanism specified by the client; no security data needs to be exchanged. 235 Server accepts the security data given by the client; no further security data needs to be exchanged. 250 Requested file action okay, completed. 257 «PATHNAME» created. 300 Series The command has been accepted, but the requested action is on hold, pending receipt of further information. 331 User name okay, need password. 332 Need account for login. 334 Server accepts the security mechanism specified by the client; some security data needs to be exchanged. 335 Server accepts the security data given by the client; more security data needs to be exchanged. 336 Username okay, need password. Challenge is «….». 350 Requested file action pending further information 400 Series The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again. 421 Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down. 425 Can’t open data connection. 426 Connection closed; transfer aborted. 430 Invalid username or password 431 Need some unavailable resource to process security. 434 Requested host unavailable. 450 Requested file action not taken. 451 Requested action aborted. Local error in processing. 452 Requested action not taken. Insufficient storage space in system. File unavailable (e.g., file busy). 500 Series Syntax error, command unrecognized and the requested action did not take place. This may include errors such as command line too long. 501 Syntax error in parameters or arguments. 502 Command not implemented. 503 Bad sequence of commands. 504 Command not implemented for that parameter. 530 Not logged in. 532 Need account for storing files. 533 Command protection level denied for policy reasons. 534 Request denied for policy reasons. 535 Failed security check. 536 Data protection level not supported by security mechanism. 537 Command protection level not supported by security mechanism. 550 Requested action not taken. File unavailable (e.g., file not found, no access). 551 Requested action aborted. Page type unknown. 552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset). 553 Requested action not taken. File name not allowed. 600 Series Replies regarding confidentiality and integrity 631 Integrity protected reply. 632 Confidentiality and integrity protected reply. 633 Confidentiality protected reply. 10000 Series Common Winsock Error Codes[2] (These are not FTP return codes) 10054 Connection reset by peer. The connection was forcibly closed by the remote host. 10060 Cannot connect to remote server. 10061 Cannot connect to remote server. The connection is actively refused by the server. 10065 No route to host / DNS cannot be resolved. 10066 Directory not empty. 10068 Too many users, server is full.

THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT Server all versions
  • CuteFTP® all versions

DISCUSSION

During FTP sessions, servers send and receive various numbered codes to/from FTP clients. Some codes represent errors, most others simply communicate the status of the connection. Below are brief explanations for the most common status and error codes.

When determining a course of action, review the entire log; some codes are informational only, others indicate that you have entered the wrong information, and others indicate what the information is that you need to provide before continuing.

For troubleshooting CuteFTP connection problems, also refer to Troubleshooting CuteFTP Connection Problems.

The table below is provided so that you have some idea whether you can solve the issue on your own (e.g., code 331=you need to provide a password) or you need to call your ISP for assistance (e.g., code 426=you are unable to connect to the remote server). These codes are used by most FTP servers/clients.

NOTE: The information below is only offered as a courtesy to assist you in telling your Internet Service Provider what the error is so that they can help solve your issue. For example, if you get a code 426, the transfer was aborted and the connection closed. The solution to this error is to «try logging back in; contact your hosting provider to check if you need to increase your hosting account; try disabling the firewall on your PC to see if that solves the problem. If not, contact your hosting provider or ISP.»

The list below contains standard FTP codes. Numbers outside this list are proprietary to the Server or Client that you are using.

Click the code number in the left-most column of the table, if it’s linked (blue), to read a more-specific reason for the code.

Code Description Discussion
100 Series The requested action was initiated; expect another reply before proceeding with a new command.
110 Restart marker reply. The text is exact and not left to the particular implementation; it must read
«MARK yyyy = mmmm» where yyyy is User-process data stream marker, and mmmm server’s equivalent marker (note the spaces between markers and «=»).
120 Service ready in nn minutes. (Informational)
125 Data Connection already open; transfer starting. (Informational)
150 File status okay; about to open data connection. FTP uses two ports: 21 for sending commands, and 20 for sending data. A status code of 150 indicates that the server is about to open a new connection on port 20 to send some data.
200 Series The requested action has been successfully completed.
200 Command okay. (Informational)
202 Command not implemented, superfluous at this site. (Informational)
211 System status, or system help reply. (Informational)
212 Directory status. (Informational)
213 File status. (Informational)
214 Help message. (Informational)
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.
220 Service ready for new user. (Informational)
221 Service closing control connection. Logged out if appropriate.
225 Data connection open; no transfer in progress. (Informational)
226 Closing data connection. Requested file action successful (for example; file transfer or file abort). The command opens a data connection on port 20 to perform an action, such as transferring a file. This action successfully completes, and the data connection is closed.
227 Entering Passive Mode. (h1,h2,h3,h4,p1,p2)
230 User logged in, proceed. This status code appears after the client sends the correct password. It indicates that the user has successfully logged on. (Informational)
250 Requested file action okay, completed. (Informational)
257 «PATHNAME» created. (Informational)
300 Series The command has been accepted, but the requested action is on hold, pending receipt of further information.
331 User name okay, need password. You see this status code after the client sends a user name, regardless of whether the user name that is provided is a valid account on the system.
332 Need account for login. Provide login credentials
350 Requested file action pending further information. (Informational)
400 Series The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again.
421 Error 421 Service not available, closing control connection.
Error 421 User limit reached
Error 421 You are not authorized to make the connection
Error 421 Max connections reached
Error 421 Max connections exceeded
This can be a reply to any command if the service knows it must shut down. Try logging in later.
425 Cannot open data connection. Change from PASV to PORT mode, check your firewall settings, or try to connect via HTTP.
426 Connection closed; transfer aborted. The command opens a data connection to perform an action, but
that action is canceled, and the data connection is closed. Try logging back in; contact your hosting provider to check if you need to increase your hosting account; try disabling the firewall on your PC to see if that solves the problem. If not, contact your hosting provider or ISP.
450 Requested file action not taken. File unavailable (e.g., file busy). Try again later.
451 Requested action aborted: local error in processing. Ensure command and parameters were typed correctly.
452 Requested action not taken. Insufficient storage space in system. Ask FTP administrator to increase allotted storage space, or archive/delete remote files.

500 Series

The command was not accepted and the requested action did not take place.
500 Syntax error, command unrecognized, command line too long. Try switching to passive mode.
501 Syntax error in parameters or arguments. Verify your input; e.g., make sure there are no erroneous characters, spaces, etc.
502 Command not implemented. The server does not support this command.
503 Bad sequence of commands. Verify command sequence.
504 Command not implemented for that parameter. Ensure entered parameters are correct.
530 User not logged in. Ensure that you typed the correct user name and password combination. Some servers use this code instead of 421 when the user limit is reached
532 Need account for storing files. Logged in user does not have permission to store files on remote server.
550 Requested action not taken. File unavailable, not found, not accessible Verify that you are attempting to connect to the correct server/location. The administrator of the remote server must provide you with permission to connect via FTP.
552 Requested file action aborted. Possible causes: Client aborted the action; EFT Site not running; storage allocation exceeded.
553 Requested action not taken. File name not allowed. Change the file name or delete spaces/special characters in the file name.
10,000 series Common Winsock Error Codes (complete list of Winsock error codes)
10054 Connection reset by peer. The connection was forcibly closed by the remote host. (Informational)
10060 Cannot connect to remote server. Generally a time-out error. Try switching from PASV to PORT mode, or try increasing the time-out value.
10061 Cannot connect to remote server. The connection is actively refused by the server. Try switching the connection port.
10066 Directory not empty. The server will not delete this directory while there are
files/folders in it. If you want to remove the directory, first archive or delete the files in it.
10068 Too many users, server is full. Try logging in at another time.
Share Article





On a scale of 1-5, please rate the helpfulness of this article

Optionally provide additional feedback to help us improve this article…

Thank you for your feedback!


Last Modified: 2 Months Ago


Last Modified By: kmarsh


Type: ERRMSG


Rated 2 stars based on 1189 votes.


Article has been viewed 897K times.

As a response to FTP Client’s command, FTP server replys with a three digit response code and text explaining the response code.

What does first digit of FTP response code means?

Following are the meaning of the values for the first digit of the FTP response code.

First digit Meaning
1xx The requested action is being initiated, expect another reply before proceeding with a new command.
2xx A positive completion reply. The requested action has been successfully completed by FTP server. A new request may be initiated.
3xx A positive immediate reply after which the FTP client has to perform a concrete action. An example is for authentication, after entering a username, a password is required.
4xx Transient Negative Completion reply. The command was not accepted and the requested action did not take place. A temporary error and the client may request action again.
5xx A permanent negative completion reply. The command was not accepted and the requested action did not take place.
6xx Protected reply based on RFC 2228.

Important FTP response codes

Following table lists important FTP response codes.

FTP response Code Description
Starting with 1xx
100 The requested action is being initiated, expect another reply before proceeding with a new command
110 Restart marker reply
120 Service ready in nnn minutes
125 Data connection already open; transfer starting
150 File status okay; about to open data connection
Starting with 2xx
200 Command okay
202 Command not implemented, superfluous at this site
211 System status, or system help reply
212 Directory status
213 File status
214 Help message to end user
215 NAME system type; For example, UNIX emulated by FileZilla
220 Service ready for new user
221 Service closing control connection
225 Data connection open; no transfer in progress
226 Closing data connection. Requested file action successful
227 Entering Passive Mode
230 User logged in, proceed
250 Requested file action okay, completed
257 PATHNAME created
Starting with 3xx
331 User name okay, need password
332 Need account for login
350 Requested file action pending further information
Starting with 4xx
421 Service not available, closing control connection
425 Cant open data connection
426 Connection closed; transfer aborted
450 Requested file action not taken
451 Requested action aborted. Local error in processing
452 Requested action not taken. Insufficient storage space in system or File unavailable
Starting with 5xx
500 Syntax error, command unrecognized
501 Syntax error in parameters or arguments
502 Command not implemented. For example, Explicit TLS authentication not allowed
503 Bad sequence of commands
504 Command not implemented for that parameter
530 Not logged in
532 Need account for storing files
550 Requested action not taken
551 Requested action aborted. Page type unknown
552 Requested file action aborted. Exceeded storage allocation
553 Requested action not taken. File name not allowed
600 Series Replies regarding confidentiality and integrity
Starting with 6xx
631 Integrity protected reply
632 Confidentiality and integrity protected reply
633 Confidentiality protected reply

Do you have any suggestions?   

Полный список кодов ответов FTP для web мастеров. Здесь вы сможете найти полный список ответов ФТП при создании соединения. Ответ FTP сервера на любую команду FTP сервера состоит из трех цифр. У каждой цифры есть своё значение, которое приводится в списке ниже.

Первая цифра ответа ФТП

Единица означает, что команда принята к выполнению но ещё не завершена
Двойка означает, что выполнение команды успешно завершено
Тройка говорит о том, что команда принята и ожидается какая-либо дополнительная команда
Четверка говорит о том, что в данный момент команда выполнена быть не может
Пятерка означает принципиальную невозможность выполнения команды

Вторая цифра ответа ФТП

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

Третья цифра ответа ФТП

Третья цифра окончательно специфицирует ошибку.


Список кодов ответов ФТП

100 Запрошенное действие инициировано, дождитесь следующего ответа прежде, чем выполнять новую команду.
110 Комментарий
120 Функция будет реализована через nnn минут
125 Канал открыт, обмен данными начат
150 Статус файла правилен, подготавливается открытие канала
200 Команда корректна
202 Команда не поддерживается
211 Системный статус или отклик на справочный запрос
212 Состояние каталога
213 Состояние файла
214 Справочное поясняющее сообщение
215 Выводится вместе с информацией о системе по команде SYST
220 Служба готова для нового пользователя.
221 Благополучное завершение по команде quit
225 Канал сформирован, но информационный обмен отсутствует
226 Закрытие канала, обмен завершен успешно
227 Переход в пассивный режим (h1,h2,h3,h4,p1,p2).
228 переход в длинный пассивный режим (длинный адрес, порт).
229 Переход в расширенный пассивный режим (|||port|).
230 Пользователь идентифицирован, продолжайте
231 Пользовательский сеанс окончен; Обслуживание прекращено.
232 Команда о завершении сеанса принята, она будет завершена по завершении передачи файла.
250 Запрос прошёл успешно
257 «ПУТЬ» создан.
331 Имя пользователя корректно, нужен пароль
332 Для входа в систему необходима аутентификация
350 Запрошенное действие над файлом требует большей информации
404 Данный удалённый сервер не найден
421 Процедура невозможна, канал закрывается
425 Открытие информационного канала не возможно
426 Канал закрыт, обмен прерван
434 Запрашиваемый хост недоступен
450 Запрошенная функция не реализована, файл не доступен, например, занят
451 Локальная ошибка, операция прервана
452 Ошибка при записи файла (недостаточно места)
500 Синтаксическая ошибка, команда не может быть интерпретирована (возможно она слишком длинна)
501 Синтаксическая ошибка (неверный параметр или аргумент)
502 Команда не используется (нелегальный тип MODE)
503 Неудачная последовательность команд
504 Команда не применима для такого параметра
530 Вход не выполнен! Требуется авторизация (not logged in)
532 Необходима аутентификация для запоминания файла
550 Запрошенная функция не реализована, файл недоступен, например, не найден
551 Запрошенная операция прервана. Неизвестный тип страницы.
552 Запрошенная операция прервана. Выделено недостаточно памяти
553 Запрошенная операция не принята. Недопустимое имя файла.

Список ошибок FTP сервера

Первая позиция

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

Вторая позиция

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

Третья позиция

Третья цифра окончательно специфицирует ошибку.

Полный список ошибок FTP сервера

Ошибка Описание
100 Запрошенное действие инициировано, дождитесь следующего ответа прежде, чем выполнять новую команду.
110 Комментарий
120 Функция будет реализована через nnn минут
125 Канал открыт, обмен данными начат
150 Статус файла правилен, подготавливается открытие канала
200 Команда корректна
202 Команда не поддерживается
211 Системный статус или отклик на справочный запрос
212 Состояние каталога
213 Состояние файла
214 Справочное поясняющее сообщение
220 Слишком много подключений к FTP-серверу (можете попробовать позднее). В некоторых версиях указывает на успешное завершение промежуточной процедуры
221 Благополучное завершение по команде quit
225 Канал сформирован, но информационный обмен отсутствует
226 Закрытие канала, обмен завершен успешно
227 Переход в пассивный режим (h1,h2,h3,h4,p1,p2).
228 переход в длинный пассивный режим (длинный адрес, порт).
229 Переход в расширенный пассивный режим (|||port|).
230 Пользователь идентифицирован, продолжайте
231 Пользоательский сеанс окончен; Обслуживание прекращено.
232 Команда о завершении сеанса принята, она будет завершена по завершении передачи файла.
250 Запрос прошел успешно
257 «ПУТЬ» создан.
331 Имя пользователя корректно, нужен пароль
332 Для входа в систему необходима аутентификация
350 Запрошенное действие над файлом требует большей информации
421 Процедура не возможна, канал закрывается
425 Открытие информационного канала не возможно
426 Канал закрыт, обмен прерван
434 Запрашиваемый хост недоступен
450 Запрошенная функция не реализована, файл не доступен, например, занят
451 Локальная ошибка, операция прервана
452 Ошибка при записи файла (недостаточно места)
500 Синтаксическая ошибка, команда не может быть интерпретирована (возможно она слишком длинна)
501 Синтаксическая ошибка (неверный параметр или аргумент)
502 Команда не используется (нелегальный тип MODE)
503 Неудачная последовательность команд
504 Команда не применима для такого параметра
530 Система не загружена (not logged in)
532 Необходима аутентификация для запоминания файла
550 Запрошенная функция не реализована, файл не доступен, например, не найден
551 Запрошенная операция прервана. Неизвестный тип страницы.
552 Запрошенная операция прервана. Выделено недостаточно памяти
553 Запрошенная операция не принята. Недопустимое имя файла

Коды ответа HTTP сервера

400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Satisfiable
417 Expectation Failed
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported

Более подробно:

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

Коды состояний обычно генерируются Web-серверами, но иногда это могут делать и CGI-сценарии, CGI-сценарии генерируют собственные заголовки вместо тех, которые должен выдавать сервер. Коды состояний группируются следующим образом:

Диапазон кодов значение ответа

100-199 Информационный
200-299 Запрос клиента успешен
300-399 Запрос клиента переадресован, необходимы дальнейшие действия
400-499 Запрос клиента является неполным
500-599 Ошибки сервера

В HTTP в каждом диапазоне определены лишь несколько кодов, хотя для сервера при необходимости могут определяться собственные коды. Клиент при получении кода, который он не может распознать, интерпретирует его в соответствии с диапазоном, к которому этот код принадлежит. Коды в диапазонах 100-199, 200-299 и 300-399 большинство Web-броузеров обрабатывают без извещения пользователя, а некоторые коды ошибок из диапазонов 400-499 и 500-599 отображаются для пользователя (например, 404 Not Found).

Информационные ответы

Ответы в диапазоне 100-199 — информационные; они показывают, что запрос клиента принят и обрабатывается.

100 Continue
Начальная часть запроса принята, и клиент может продолжать передачу запроса.

101 Switching Protocols
Сервер выполняет требование клиента и переключает протоколы в соответствии с указанием, данным в поле заголовка Upgrade.

Успешные запросы клиента

Ответы в диапазоне 200-299 означают, что запрос клиента обработан успешно.

200 OK
Запрос клиента обработан успешно, и ответ сервера содержит затребованные данные.

201 Created
Этот код состояния используется в случае создания нового URI. Вместе с этим кодом результата сервер выдает заголовок Location (см. главу 19), который содержит информацию о том, куда были помещены новые данные.

202 Accepted
Запрос принят, но обрабатывается не сразу. В теле содержимого ответа сервера может быть дана дополнительная информация о данной транзакции. Гарантии того, что сервер в конечном итоге удовлетворит запрос, нет, даже несмотря на то, что на момент приема запрос выглядел допустимым.

203 Non-Authoritative Information
Информация в заголовке содержимого взята из локальной копии или у третьей стороны, а не с исходного сервера.

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

205 Reset Content
Браузер должен очистить форму, используемую в данной транзакции, для дополнительных входных данных. Полезен для CGI-приложений, требующих ввода данных.

206 Partial Content
Сервер возвращает лишь часть данных затребованного объема. Используется в ответе на запрос с указанием заголовка Range. Сервер должен указать диапазон, включенный в ответ, в заголовке Content-Range.

Переадресация

Код ответа в диапазоне 300-399 означает, что запрос не выполнен и клиенту нужно предпринять некоторые действия для удовлетворения запроса.

300 Multiple Choices
Затребованный URI обозначает более одного ресурса. Например, URI может обозначать документ, переведенный на несколько языков. В теле содержимого, возвращенном сервером, может находиться перечень более конкретных данных о том, как выбрать ресурс правильно.

301 Moved Permanently
Затребованный URI уже не используется сервером, и указанная в запросе операция не выполнена. Новое местонахождение затребованного документа указывается в заголовке Location. Во всех последующих запросах данного документа следует указывать новый URI.

302 Moved Temporarily
Затребованный URI перемешен, но лишь временно. Заголовок Location указывает на новое местонахождение. Сразу же после получения этого кода состояния клиент должен разрешить запрос при помощи нового URI, но во всех последующих запросах необходимо пользоваться старым URI.

303 See Other
Затребованный URI можно найти по другому URI (указанному в заголовке Location). Его следует выбрать методом GET по данному ресурсу.

304 Not Modified
Это код ответа на заголовок lf-Modified-Since, если URI не изменялся с указанной даты. Тело содержимого не посылается, и клиент должен использовать свою локальную копию.

305 Use Proxy
Доступ к затребованному URI должен осуществляться через proxy-сервер, указанный в заголовке Location.

Неполные запросы клиента

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

400 Bad Request
Означает, что сервер обнаружил в запросе клиента синтаксическую ошибку.

401 Unauthorized
Этот код результата, передаваемый с заголовком WWW-Authenticate, показывает, что пославший запрос пользователь не имеет необходимых полномочий и что при повторении запроса с указанием данного URI пользователь должен такие полномочия предоставить.

402 Payment Required
Этот код в HTTP еще не реализован.

403 Forbidden
Запрос отклонен по той причине, что сервер не хочет (или не имеет возможности) ответить клиенту.

404 Not Found
Документ по указанному URI не существует.

405 Method Not Allowed
Этот код выдается с заголовком Allow и показывает, что метод, используемый клиентом, для данного URI не поддерживается.

406 Not Acceptable
Ресурс, указанный клиентом по данному URI, существует, но не в том формате, который нужен клиенту. Вместе с этим кодом сервер выдает заголовки Content-Language, Content-Encoding и Content-Type.

407 Proxy Authentication Required
Proxy-сервер должен санкционировать запрос перед тем, как пересылать его. Используется с заголовком Proxy-Authenticate.

408 Request Time-out
Этот код ответа означает, что клиент не передал полный запрос в течение некоторого установленного промежутка времени (который обычно задается в конфигурации сервера) и сервер разрывает сетевое соединение.

409 Conflict
Данный запрос конфликтует с другим запросом или с конфигурацией сервера. Информацию о конфликте следует возвратить в информационной части ответа.

410 Gone
Данный код показывает, что затребованный URI больше не существует и навсегда удален с сервера.

411 Length Required
Сервер не примет запрос без указанного в нем заголовка Content-Length.

412 Precondition Failed
Результат вычисления условия, заданного в запросе одним или несколькими заголовками if. . ., представляет собой «ложь».

413 Request Entity Too Large
Сервер не будет обрабатывать запрос, потому что его тело слишком велико.

414 Request-URI Too Long
Сервер не будет обрабатывать запрос, пот ому что его URI слишком длинный.

415 Unsupported Media Type
Сервер не будет обрабатывать запрос, потому что его тело имеет неподдерживаемый формат.

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

Коды ответов в диапазоне 500-599 показывают, что сервер столкнулся с ошибкой и, вероятно, не сможет выполнить запрос клиента.

500 Internal Server Error
При обработке запроса на сервере один из его компонентов (например, CGI-программа) выдал аварийный отказ или столкнулся с ошибкой конфигурации.

501 Not Implemented
Клиент запросил выполнение действия, которое сервер выполнить не может.

502 Bad Gateway
Сервер (или proxy-сервер) получил недопустимые ответы другого сервера (или proxy-сервера).

503 Service Unavailable
Данный код означает, что данная служба временно недоступна, но в будущем доступ к ней будет восстановлен. Если сервер знает, когда это произойдет, может быть также выдан заголовок Retry-After.

504 Gateway Time-out
Этот ответ похож на 408 (Request Time-out) , за исключением того, что шлюз или уполномоченный сервер превысил лимит времени.

505 HTTP Version not supported
Сервер не поддерживает версию протокола HTTP, использованную в запросе.

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

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

  • Яндекс еда ошибка привязки карты
  • Коды ошибок freightliner columbia
  • Коды ошибок foton
  • Коды ошибок fortis
  • Коды ошибок http основные

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

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