InvokeResponse Class
Tuple class containing an HTTP Status Code and a JSON serializable object. The HTTP Status code is, in the invoke activity scenario, what will be set in the resulting POST. The Body of the resulting POST will be JSON serialized content.
The body content is defined by the producer. The caller must know what the content is and deserialize as needed.
Constructor
pydantic model InvokeResponse
Keyword-Only Parameters
| Name | Description |
|---|---|
|
status
|
Default value: None
|
|
body
|
Default value: None
|
Methods
| is_successful_status_code |
Gets a value indicating whether the invoke response was successful. :return: A value that indicates if the HTTP response was successful. true if status is in the Successful range (200-299); otherwise false. |
is_successful_status_code
Gets a value indicating whether the invoke response was successful. :return: A value that indicates if the HTTP response was successful. true if status is in the Successful range (200-299); otherwise false.
is_successful_status_code() -> bool
Returns
| Type | Description |
|---|---|
Attributes
body
field body: object = None
status
field status: int = None