Skip to main content

valid-error-codes

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

Only valid status codes from range 4XX (client errors) and 5XX (server errors) must be used for endpoint error definitions.

PropertyValue
EnabledYes
Maximum SeverityError
MessageInvalid error response status code found.
CodeAPIMATICPRE_V302
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Responses
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic http status error response endpoint api

Suggested Fixes

  • Remove error definition containing invalid error code.
  • Error code must belong to range range 4XX or 5XX.

For More Information