Skip to content

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

@jfabric

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" }

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