WebServiceResponse

Contains all information about web service custom request execution result

Instance attributes

agentErrorCode: int

Agent error code (0 if the agent completed the request)

body: String

Response body. Alias for document.

document: String

Document that was returned by web service as a response to the request. For HTTP error responses and unfollowed redirects, contains the response body.

errorMessage: String

Human readable error message set by server or agent (empty string if there is no error)

httpResponseCode: int

HTTP response code

redirectUrl: String

Target URL of an HTTP redirect that was not followed (following redirects is disabled in the web service definition, or redirect limit reached), or null if the response was not a redirect.

statusCode: int

HTTP response status code. Alias for httpResponseCode.

success: bool

true if the agent completed the request and received an HTTP response, false if there was a problem on server or on agent (no connection, timeout, communication failure). HTTP error responses (4xx, 5xx) and unfollowed redirects are reported with success set to true; check statusCode.