Return a error code at the root level.

To generate the error code use the key ( attribute ), joined by the errors keys that has been sorted alphabetacally.
This will allow a simpler error handling on the client side.