404 API routes return plaintext #228

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

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
Author
Owner

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.
Author
Owner

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

Yeah I'm not counting this as an issue anymore.
This repository is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
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
No description provided.