API ideas #4258
the1mason
started this conversation in
Feature Requests & Suggestions
API ideas
#4258
Replies: 1 comment
-
@the1mason HTML is returned if you don't specify the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My little suggestion is about API.
When someone sends a request to the API with an incorrect token server returns 200 status code with HTML body.
I think it could be better to receive 401 status code with JSON error, empty body, or the same HTML page but with unauthorized code. It would be much more obvious and easier to handle.
Edit:
Also, getting non-existent file contents/file list returns 200 status code and HTML, so my second idea is to use 400/404 status code or an error.
Beta Was this translation helpful? Give feedback.
All reactions