HTTP status codes in responses must be between 100 and 599

Description

One or more responses objects in your API have non-standard HTTP response code keys. The HTTP response code keys must be between 100 and 599.

For more details, see the OpenAPI Specification.

Example

The following is an example of how this issue could look in your API definition. Here, the response code has a typo and is missing one number:

1responses:
2  "20":
3    description: Expected response to a valid request
4    schema:
5      $ref: "#/components/schemas/Pets"
6

Or your response code might be bigger than the maximum defined in the Hypertext Transfer Protocol (HTTP) Status Code Registry:

1responses:
2  "659":
3    description: Response to the error XYZ
4    schema:
5      $ref: "#/components/schemas/Pets"
6

Remediation

Make sure that all responses objects have HTTP response code keys between 100 and 599.

1responses:
2  "200":
3    description: Expected response to a valid request
4    schema:
5      $ref: "#/components/schemas/Pets"
6

Copyright 42Crunch 2021