---
id: "ftp_reply_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["internet"]
langs: ["common"]
quality: 80
url: "https://registry.apicrafter.io/datatype/ftp_reply_code"
---

# FTP reply code (`ftp_reply_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Three-digit code with which an FTP server answers a command (RFC 959). The first digit, 1 to 5, says whether the reply is preliminary, a completion, intermediate, a transient failure or a permanent failure. The second digit, 0 to 5, gives the group, such as syntax, connections or the file system. HTTP and SMTP codes have the same form, so use the field name or context.

- Personal data (PII): no
- Categories: Internet (internet)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-5][0-5]\d$
```

## Examples

- `220` — Service ready for new user
- `226` — Closing data connection
- `331` — User name okay, need password
- `550` — Requested action not taken, file unavailable
- `650` (invalid example) — The first digit is at most 5

## Translations

- ru: Код ответа сервера FTP

## Sources

- doc: <https://www.rfc-editor.org/rfc/rfc959>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ftp_reply_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/ftp_reply_code.yaml>
