Fern Definition

Errors

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

An error has:

  • An HTTP status code
  • A body type (Optional)
1
2
3
4
5
6
7
8
9
errors:
  UserNotFoundError:
    status-code: 404
    type: UserNotFoundErrorBody

types:
  UserNotFoundErrorBody:
    properties:
      requestedUserId: string