HTTP

Answer with a status you choose

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.

get/http/status/{code}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/http/status/{code}
  • Auth
    • none
    • or HTTP bearer

Response

No Content, as asked.

Changes

No recorded changes to this operation across all 1 revision of this API.