Abstracting error handling and exceptions. Error text is now generated client side depending on the code from the server.