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
HTTP status code and errorcode seem to be redundant piece of information at this point, so it would be good to take appropriate action depending on the intended purpose:
If status code always match a specific errorcode, then why have both? and if we must keep both, decide which one has priority and which one should be used by clients.
If they don't exactly match, or if the HTTP status code is a generic indication, then clarify the generic meaning of status codes in the spec (appendixes maybe)?
The text was updated successfully, but these errors were encountered:
I couldn't agree more. I think in general we need both, because we want more expressiveness than is plausible from an HTTP status code alone; however this absolutely needs tidying up.
The HTTP status code could also be added to the json error object, something like : { "errcode": "<error code>", "error": "<error message>", "http_status": 401 }
As seen by https://matrix.to/#/!XqBunHwQIXUiqCaoxq:matrix.org/%241525345332979375uwIJj:matrix.org some client rely on the error code string in the body instead of the returned status code. while some others rely on HTTP status code only.
HTTP status code and errorcode seem to be redundant piece of information at this point, so it would be good to take appropriate action depending on the intended purpose:
The text was updated successfully, but these errors were encountered: