Defining your API
Errors
Defining your API
Errors
Errors represent failed (non-200) responses from endpoints.
An error has:
- An HTTP status code
- A body type (Optional)
user.yml
errors:
UserNotFoundError:
status-code: 404
type: UserNotFoundErrorBody
types:
UserNotFoundErrorBody:
properties:
requestedUserId: string