Skip to content

Support Error Code #1282

Closed as not planned
Closed as not planned
@jugaadi

Description

@jugaadi

Since error messages are not standardised across implementations, it is difficult to share the exact error. Moreover, these error messages can change over time(depending on the library), thus, introducing breakages in implementations. Such breakages can break translations, formatting, etc for the end user.

Example: Server validation output format being passed to client validator.

Suggestions:

  1. Current error node in output format can point to error code instead of the message.
  2. title and description annotations can be used to add more details of the error.
  3. Standardise error code format(similar to SQLSTATE).
  4. Introduce error code classes(similar to SQLSTATE) for each constraint type.

Prior art:

  1. HTTP Error Codes
  2. Typescript Error Codes
  3. Postgres Error Codes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions