Skip to main content

unique-error-codes

Overview

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

The errors defined for an endpoint (globally or within the endpoint) must have unique HTTP status codes.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate definition found for error code.
CodeAPIMATICPRE_V304
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

  • Keep one and remove all other error definitions which have the same status codes.

For More Information