A generic wrapper for API responses. It provides a standardized structure for both successful and failed requests.
The type of the data expected in a successful response.
Optional
The data payload of a successful response. Undefined on error.
An error message if the request failed. Undefined on success.
An optional informational message from the server.
A generic wrapper for API responses. It provides a standardized structure for both successful and failed requests.