supported-response-status-code
Overview
This rule belongs to the raml-validation ruleset and states that:
If multiple responses are disabled via import settings provided in the APIMatic Metadata file, only method response definitions belonging to status code ranges 200-208 and 400-599 will be imported. Those 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 | RAML_V401 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Resources and Methods |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | raml semantic validation http status code status code http response method |
Suggested Fixes
- Enable import setting
ImportMultipleResponsesusing the APIMatic Metadata file. - Remove the response definition that uses the unsupported status code, from the method responses object.
For More Information
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#responses
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#methods
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md#responses
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md#methods
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md
- https://docs.apimatic.io/rulesets/overview/