Skip to content

Give API error responses in JSON format #2685

@Kevinjil

Description

@Kevinjil

Description of the enhancement request

Currently, a 404 on an API endpoints gives a HTML page back. This is both wasteful in rendering and annoying to parse on the client / CLI.

The goal you want to achieve

For endpoints which normally return JSON, also return JSON in the non-happy flow.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions