---
title: "Answer with a status you choose"
method: GET
path: "/http/status/{code}"
tags: ["HTTP"]
---

# Answer with a status you choose

`GET /http/status/{code}`

## Request

- Base URL: `https://gorest.co.in/public/v3`
- URL: `https://gorest.co.in/public/v3/http/status/{code}`
- Auth: one of:
  - none
  - HTTP bearer

For testing how a client handles each status. 2xx and 3xx answer an `HttpStatus` body (204, 205 and 304 none); 4xx and 5xx answer Problem Details with the code `requested_status`. A 401 has `WWW-Authenticate`, a 405 `Allow` and a 429 or 503 `Retry-After`, as real ones do.

## Response `204`

No Content, as asked.

## Other responses

- `205`: Reset Content, as asked.
- `304`: Not Modified, as asked.
- `default`: The status asked for; also the API's own refusals (400 for a code out of range, 401, 429).

---

[API](https://skmtc.dev/gorest/apis/gorest-api-v3.md) - [All operations](https://skmtc.dev/gorest/apis/gorest-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/gorest/apis/gorest-api-v3/revisions/89aa429755a6?raw)
