Anypoint Best Practices
no-2xx-response
general > no-2xx-response
Guidance / Message
HTTP resources not returning a 2xx success response do not describe normal responses from the API.
Examples
valid
get:
responses:
200:
description: All profiles
headers:
content-type:
description: a header
type: string
example:
'application/json'
404:
description: Not found
invalid
get:
responses:
404:
description: Not found
500:
description: some error
# no 200 response here
Applies to Operation