# Response statuses

> Example of an OpenAPI document with response statuses.

---

# Get 200

`GET 200`

Example of a response with a 200 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 200

Successful response

Content type: `application/json`

Type: `string`. Example: `200 OK`.

Example:

```json
"200 OK"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us200/
```

---

# Get 201

`GET 201`

Example of a response with a 201 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 201

Created

Content type: `application/json`

Type: `string`. Example: `201 Created`.

Example:

```json
"201 Created"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us201/
```

---

# Get 400

`GET 400`

Example of a response with a 400 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 400

Bad Request

Content type: `application/json`

Type: `string`. Example: `400 Bad Request`.

Example:

```json
"400 Bad Request"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us400/
```

---

# Get 401

`GET 401`

Example of a response with a 401 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 401

Unauthorized

Content type: `application/json`

Type: `string`. Example: `401 Unauthorized`.

Example:

```json
"401 Unauthorized"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us401/
```

---

# Get 403

`GET 403`

Example of a response with a 403 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 403

Forbidden

Content type: `application/json`

Type: `string`. Example: `403 Forbidden`.

Example:

```json
"403 Forbidden"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us403/
```

---

# Get 404

`GET 404`

Example of a response with a 404 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 404

Not Found

Content type: `application/json`

Type: `string`. Example: `404 Not Found`.

Example:

```json
"404 Not Found"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us404/
```

---

# Get 500

`GET 500`

Example of a response with a 500 status code.

## Servers

- `https://httpstat.us/`

## Responses

### 500

Internal Server Error

Content type: `application/json`

Type: `string`. Example: `500 Internal Server Error`.

Example:

```json
"500 Internal Server Error"
```

## Code samples

**cURL**

```bash
curl https://httpstat.us500/
```
