Asset Connector Documentation
Loading...
Searching...
No Matches
response_body Namespace Reference

Classes

class  ResponseBody
 

Functions

ResponseBody create_response (int status_code, str message, str payload="{}", str value="")
 Create a ResponseBody instance with the given parameters.
 

Function Documentation

◆ create_response()

ResponseBody response_body.create_response ( int  status_code,
str  message,
str   payload = "{}",
str   value = "" 
)

Create a ResponseBody instance with the given parameters.

Parameters
status_codeThe HTTP status code of the response.
messageA message providing additional information about the response.
payloadJson content of the response.
valueThe value returned by the operation, if applicable.
Returns
An instance of ResponseBody.

Definition at line 60 of file response_body.py.