# Get an order (12 status codes)

`GET /orders/{orderId}`

Operation ID: `getOrderManyCodes`

Tags: `many-response-codes`

Twelve status codes with a short content type (`application/json`).
The status codes scroll; the content type stays complete.

## Servers

- `https://api.example.com`

## Parameters

### Path parameters

- `orderId` (string, required)

## Responses

### 200

The order.

#### Content type: `application/json`

Schema: `object`

Order

- `id` (string, example: `ord_123`)
- `status` (string, possible values: `pending`, `paid`, `shipped`)
- `note` (string)

### 304

Not modified since the given ETag.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 400

Bad Request - The request is not valid.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 401

Unauthorized - Authentication is required.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 403

Forbidden - The caller cannot access this order.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 404

Not Found - The order does not exist.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 405

Method Not Allowed.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 409

Conflict - The order changed since it was read.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 413

Payload Too Large.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 415

Unsupported Media Type - The media type is not supported.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### 429

Too Many Requests - Retry after the time in Retry-After.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)

### default

Unexpected error.

#### Content type: `application/json`

Schema: `object`

Error

- `error` (object)
  - `error.message` (string, example: `The request could not be processed`)
