You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an error occurs, the HTTP response code should not be 2xx, but 4xx (in case of request error, in my case I am not authenticated so the HTTP error code should be 404) or 5xx (in case of server error or misconfiguration)
Current Behavior
I am not authenticated, I receive an error message, but the HTTP response is 200: OK "everything seems good"
Possible Solution
In case of error message (error result), never use HTTP 200, but at least HTTP 400 or HTTP 500
The text was updated successfully, but these errors were encountered:
diosmosis
added
Bug
For errors / faults / flaws / inconsistencies etc.
and removed
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
labels
Mar 7, 2021
Step to reproduce on the online demo server
Call https://demo.matomo.cloud/index.php?module=API&method=API.getMatomoVersion&token_auth=TOKEN_AUTH (yes, the authentication token is wrong, this is wanted)
Expected Behavior
If an error occurs, the HTTP response code should not be
2xx
, but4xx
(in case of request error, in my case I am not authenticated so the HTTP error code should be404
) or5xx
(in case of server error or misconfiguration)Current Behavior
I am not authenticated, I receive an error message, but the HTTP response is
200: OK
"everything seems good"Possible Solution
In case of error message (error result), never use HTTP
200
, but at least HTTP400
or HTTP500
The text was updated successfully, but these errors were encountered: