{
  "id": "smtp_reply_code",
  "kind": "datatype",
  "status": "draft",
  "name": "SMTP reply code",
  "doc": "Three-digit code with which a mail server answers an SMTP command (RFC 5321), as in 250 for an accepted command and 550 for a rejected mailbox. The first digit gives the kind of reply, from 2 for success to 5 for a permanent failure. Mail server logs and bounce messages store it, often together with the enhanced status code (smtp_enhanced_status_code). HTTP and FTP codes have the same form, so use the field name or context.",
  "is_pii": false,
  "categories": [
    "internet"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^[2-5]\\d{2}$",
  "examples": [
    {
      "value": "250",
      "description": "Requested mail action completed",
      "valid": true
    },
    {
      "value": "354",
      "description": "Intermediate reply to the DATA command",
      "valid": true
    },
    {
      "value": "421",
      "description": "Service shutting down",
      "valid": true
    },
    {
      "value": "550",
      "description": "Mailbox unavailable",
      "valid": true
    },
    {
      "value": "150",
      "description": "SMTP has no 1xx replies",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.rfc-editor.org/rfc/rfc5321"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код ответа сервера SMTP"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/internet/smtp_reply_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/smtp_reply_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/smtp_reply_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/smtp_reply_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/smtp_reply_code.json"
  }
}