Skip to content

json body for all 4xx and 5xx status responses #18

Description

@jfabric

currently, for invalid requests (with status 4xx) the server sends an html response body.
since the server API is used by client software and not humans, and since all other responses are json (except to "get /"), change the body on all status 4xx and 5xx responses to json:
{ msg: "error message here" }

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions