Skip to main content

CustomApiResponse

Generic wrapper for API responses with status, message, and data

successboolean

Indicates if the operation was successful

Example: false
messagestring

Response message providing additional information about the operation

Example: Something went wrong
codeErrorstringnullable

Error code in case of failure

Example: ERR_001
dataobjectnullable

Response payload containing the actual data

CustomApiResponse
{
"success": false,
"message": "Something went wrong",
"codeError": "ERR_001",
"data": {}
}