---
title: "POST status-statusCode"
url: "https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4/paths/status-statusCode/post"
---

> Full API specification: https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4.md

# /status/{statusCode}

`POST` `/status/{statusCode}`

## Path parameters

- `statusCode` (array, required) - The status code to return, or a weighted list of statuses to pick from, such as `200:4,500:0.3,418`.

## Responses

- `default` - A response with the requested status code.

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: httpbin
  version: 1.0-oas3
servers:
  - url: https://httpbin.org
  - url: http://httpbin.apim.eu/
  - url: https://eu.httpbin.org
  - url: http://eu.httpbin.org
  - url: http://localhost:8000/test
paths:
  /status/{statusCode}:
    parameters:
      - name: statusCode
        in: path
        required: true
        description: The status code to return, or a weighted list of statuses to pick
          from, such as `200:4,500:0.3,418`.
        schema:
          type: array
          items:
            description: HTTP status code. May include optional weight, e.g. `200:0.9`
            oneOf:
              - type: string
              - type: integer
          minItems: 1
          example:
            - 200:5
            - 500:0.3
            - 418
        style: simple
    post:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.
```
