Look up an HTTP status code
iana_lookup_http_statusLook up an HTTP status code in the IANA registry, or search reason phrases. Pass exactly one of code (100–599) or keyword (e.g. "too many"). Returns the registered phrase, its class, defining reference with section, and whether it is temporary, obsoleted, or unused; an unassigned code returns found: false with the unassigned range it falls in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Status code to look up, 100–599 (a digit string such as "429" also works). Pass this or keyword, not both. | |
| limit | No | Maximum number of results to return, 1–100. Default 25. | |
| offset | No | Number of keyword matches to skip; pass the next_offset of the previous response to get the next page. Default 0. | |
| keyword | No | Words matched as whole tokens against registered reason phrases, e.g. "too many" or "gateway". Pass this or code, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The limit applied. | |
| mode | No | Which lookup ran. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | True when a registered status matched. | |
| shown | No | Results returned. | |
| notice | No | Guidance on a miss, a cut list, or another condition. | |
| source | No | Provenance and freshness of the answer. | |
| statuses | No | Matching status codes: exact phrase hits first, then registry order. | |
| truncated | No | True when more matches exist than were returned. | |
| totalCount | No | Matches before the limit was applied. | |
| next_offset | No | Pass as offset for the next page; absent on the last. | |
| unassigned_range | No | For an unassigned code, the registry range it falls in, e.g. "432-450". |