---
id: "http_status_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["internet"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/http_status_code"
---

# HTTP status code (`http_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-digit code with which an HTTP server reports the result of a request. The first digit gives the class: 1xx informational, 2xx successful, 3xx redirection, 4xx client error and 5xx server error, and all valid codes are between 100 and 599. Examples are 200 (OK), 301 (Moved Permanently), 404 (Not Found) and 500 (Internal Server Error). RFC 9110 defines the codes, and IANA keeps their registry. Web server logs and API monitoring data store them.

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

## Detection

Regular expression (Python `re`):

```
^[1-5]\d{2}$
```

## Examples

- `200` — OK
- `404` — Not Found
- `503` — Service Unavailable
- `101` — Switching Protocols
- `600` (invalid example) — Outside the range 100 to 599
- `99` (invalid example) — Two digits

## Mappings

- autotype: `httpstatus`

## Supported by tools

- `alteryxdesignercloud`
- `autotype`
- `greatexpectations`

## Translations

- ru: Код состояния HTTP: Трёхзначный код результата обработки HTTP-запроса от 100 до 599; первая цифра задаёт класс ответа.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/List_of_HTTP_status_codes>
- doc: <https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes>
- doc: <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml>
- other: <https://github.com/congy/AutoType/blob/master/data_release/httpstatus.txt>

## Quality

Score 100/100.

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