Skip to content
v1.0.0

Response statuses

Example of an OpenAPI document with response statuses.

License

MIT

Servers

https://httpstat.us/

Default


Get 200

GET
200

Example of a response with a 200 status code.

Responses

Successful response
application/json
JSON
"200 OK"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 201

GET
201

Example of a response with a 201 status code.

Responses

Created
application/json
JSON
"201 Created"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 400

GET
400

Example of a response with a 400 status code.

Responses

Bad Request
application/json
JSON
"400 Bad Request"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 401

GET
401

Example of a response with a 401 status code.

Responses

Unauthorized
application/json
JSON
"401 Unauthorized"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 403

GET
403

Example of a response with a 403 status code.

Responses

Forbidden
application/json
JSON
"403 Forbidden"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 404

GET
404

Example of a response with a 404 status code.

Responses

Not Found
application/json
JSON
"404 Not Found"

Playground

Samples

cURL
JavaScript
PHP
Python

Get 500

GET
500

Example of a response with a 500 status code.

Responses

Internal Server Error
application/json
JSON
"500 Internal Server Error"

Playground

Samples

cURL
JavaScript
PHP
Python

Powered by VitePress OpenAPI