Let's say I have a web service which returns a collection of images based on a passed in user. Now I call the web service with a invalid user. The call throws a UnauthorizedAccessException with a message saying the user is not authorized to get the collection.
I want this message to be localized. Where do I localize this message, on the client-side based on a error code? Or do I pass a 'language' parameter to the method in the first place? Do I use HTTP status codes so the client can localize the message?