| Key | Value (string) |
|---|---|
| 200 | OK |
| 201 | Created |
| 204 | No Content |
| 301 | Moved Permanently |
| 302 | Found |
| 304 | Not Modified |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 409 | Conflict |
| 422 | Unprocessable Entity |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 502 | Bad Gateway |
| 503 | Service Unavailable |
| 504 | Gateway Timeout |
{ "collection": "http-status-codes", "type": "string", "count": 18, "items": [ { "key": "200", "value": "OK" }, { "key": "201", "value": "Created" }, { "key": "204", "value": "No Content" } ] }
const res = await fetch( 'https://collections.rest/api/v1/collection/http-status-codes.json' ); const { items } = await res.json(); // values are typed: integers are numbers, not strings
curl https://collections.rest/api/v1/\
collection/http-status-codes.csv