---
title: "Mock an HTTP status code response"
method: GET
path: "/http/{httpCode}"
tags: ["HTTP"]
---

# Mock an HTTP status code response

`GET /http/{httpCode}`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/http/{httpCode}`
- Auth: none required

## Path parameters

- `httpCode` integer, required

## Response `default`

Response with the requested status code

- object
  - `status` integer
  - `message` string

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
