Finer granularity error codes in order to support i18nized errors from the server #377
Labels
A-Client-Server
Issues affecting the CS API
feature
Suggestion for a significant extension which needs considerable consideration
Right now there are many APIs where we return a generic 400,403,404 etc with a human readable error in English but no finer-granularity error code which a client could pick up and present a proper i18nized error message. Surely we need some kind of solution for this - whether it's either mandating servers do the i18n for errors themselves based on Accept language headers, or having much more sophisticated and finer granularity errors.
A good example is the groups API:
Where clients will not only want to i18nize but also s/group/communities/ for presentation to the user (see element-hq/element-web#6003).
Related: https://github.com/matrix-org/matrix-doc/issues/1638 and https://github.com/matrix-org/matrix-doc/issues/603
The text was updated successfully, but these errors were encountered: