Errors in Fern Definition

Errors represent failed (non-200) responses from endpoints.

An error has:

  • An HTTP status code
  • A body type (Optional)
user.yml
1errors:
2 UserNotFoundError:
3 status-code: 404
4 type: UserNotFoundErrorBody
5
6types:
7 UserNotFoundErrorBody:
8 properties:
9 requestedUserId: string