Added spec for timeout error.
Added error handling for error responses from server.