404 API routes return plaintext #228

Closed
opened 2022-06-05 21:47:40 +02:00 by Jef Roosens · 2 comments

If a route currently returns 404, it returns a plaintext response instead of the expected JSON response.

If a route currently returns 404, it returns a plaintext response instead of the expected JSON response.
Jef Roosens added the
bug
label 2022-06-05 21:47:40 +02:00
Jef Roosens added this to the 0.4.0 milestone 2022-06-13 22:42:27 +02:00

To be honest, this isn't really a problem. The only routes that I think should return a proper 404 JSON message are the API routes with URL parameters. Other routes can just return an empty 404, as the response is irrelevant.

To be honest, this isn't really a problem. The only routes that I think should return a proper 404 JSON message are the API routes with URL parameters. Other routes can just return an empty 404, as the response is irrelevant.

Yeah I'm not counting this as an issue anymore.

Yeah I'm not counting this as an issue anymore.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vieter-v/vieter#228
There is no content yet.