Today I need your feedback about a RESTful service design question I have.
I focus here on the locale management.
Here is my generic locale management implemented in my services :
- lang provided in query parameter
- fallback on « Accept-Language» header
- If header is not provided, left empty or ressource does not exist for this locale: we apply a default existing locale.
In bold the subject of my question. Functionally, we want to manage a default case. At the API level, I do not see what http code is closest to this scenario ... Nothing that fit into the family of 20X http codes, maybe a 303 ...
I'm annoyed with 200 http code because when a client specifies that it wants the resource in a given language, I respond to him in another locale ...
Looking forward for your expert feedbacks