Better server error - added code and response_error methods

It's needed to access error 'code' in error handling code. Now I should parse string message to extract code from it. This change provides access  to code directly from ServerError instance