Entities has got to be my #1 priority when interfacing with an API as well. Good call!
I don't agree with this one though.
Most of the time the client should be able to put the message field directly into the interface.
While the message should be a human readable message, its not readable if it is in a language the user does not understand. Either some sort of translation key should be sent or the client should translate a 401 into the appropriate translation.
Entities has got to be my #1 priority when interfacing with an API as well. Good call!
I don't agree with this one though.
While the message should be a human readable message, its not readable if it is in a language the user does not understand. Either some sort of translation key should be sent or the client should translate a
401
into the appropriate translation.Good point.