TTMSMCPClientTransportHTTP.OnHTTPResponse Event
Occurs when a request failed, reporting the status the server answered with and the body that came with it.
API unit family: TMS.MCP.Client.Transport.HTTP
Declaring type: TTMSMCPClientTransportHTTP
Type: TTMSMCPClientTransportHTTPResponseEvent
Syntax
property OnHTTPResponse: TTMSMCPClientTransportHTTPResponseEvent;
Remarks
Raised for a failing status that the transport does not handle by itself, so a refusal that starts an authorization flow and a rejection of the request method are reported through their own notifications instead. It is also raised when an authorization attempt fails, in which case the arguments carry the error the authorization server returned and the transport has already stopped itself. Raised on the worker that issued the failing request. A report that the session is gone is passed on here too, but the transport handles that one itself by dropping the session and starting a fresh one.