Skip to navigation

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
errors:
UserNotFoundError:
status-code: 404
type: UserNotFoundErrorBody
types:
UserNotFoundErrorBody:
properties:
requestedUserId: string