supported-response-status-code
Overview
This rule belongs to the postman-validation
ruleset and states that:
If multiple responses are disabled via import settings provided in the APIMatic Metadata file, only response definitions belonging to status code ranges 200-208 and 400-599 will be imported. Responses defined in a request which are outside the supported range will be ignored automatically during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Provided response status code is not supported in the current import configuration. |
Code | POSTMAN_V450 |
Type | Validation |
Rule System | Semantic |
Broad Category | Responses |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | postman api semantic validation http status code status code http response |
Suggested Fixes
- For Postman v1.0, ensure that the
responseCode
property value of the response definition falls within supported range. - For Postman v2.0 or above, ensure that the
code
property value of the response definition falls within supported range. - Enable import setting
ImportMultipleResponses
using the APIMatic Metadata file. - Remove the response definition that uses the unsupported status code, from the responses list.
For More Information
- https://learning.postman.com/docs/sending-requests/responses/
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#request
- https://learning.postman.com/docs/sending-requests/requests/
- https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json
- https://schema.postman.com/collection/json/v2.0.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v2.0.0/draft-07/collection.json
- https://schema.postman.com/collection/json/v1.0.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v1.0.0/draft-07/collection.json
- https://learning.postman.com/docs/introduction/overview/
- https://docs.apimatic.io/rulesets/overview/