This method is used by the connectivity layer when an error occurres during a request operation.
As parameter the listener object will receive the request object, the SDMHttpResponse object containing the details about the server response and a SDMRequestStateElement object, which provides more details about the occurred error. In case the error happened before sending any request to the server, the SDMHttpResponse object can be null.