Skip to content

Inconsistent/absent error response contract (not RFC 7807) #44

Description

@umerfaruk

Summary

Error responses have no consistent shape across the API.

Details

Depending on which middleware/handler catches the exception, clients get: a JSON `{ "message": ... }` body, plain text, or an empty body with just a status code (see #10).

Suggested fix

Standardize on `application/problem+json` (`ProblemDetails`) so clients get a predictable, typed error shape (`type`/`title`/`status`/`detail`). Best done together with #10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions