Errors in Fern Definition

View as Markdown

Fern Definition isn’t recommended for new customers and Fern isn’t accepting feature requests for this format. It remains supported for existing users.

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