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

# Enhanced mail system status code (`smtp_enhanced_status_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-part code of the result of a mail delivery from RFC 3463, as in 5.1.1. The class is 2 for success, 4 for a temporary failure and 5 for a permanent failure. The subject and the detail have one to three digits each without leading zeros. SMTP replies and delivery status notifications carry it next to the three-digit reply code (smtp_reply_code).

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

## Detection

Regular expression (Python `re`):

```
^[245]\.(?:0|[1-9]\d{0,2})\.(?:0|[1-9]\d{0,2})$
```

## Examples

- `5.1.1` — The destination mailbox does not exist
- `4.2.2` — The mailbox is full
- `2.1.5` — The destination address is valid
- `3.1.1` (invalid example) — Class 3 does not exist

## Translations

- ru: Расширенный код статуса почтовой системы

## Sources

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

## Quality

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

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