Standard API Response
This is a generic API response object for consistent API output across services. it is mostly meant for internal InterNACHI use, but anyone is welcome to use it.
Basic Usage
app
Response Format
HTTP/1.1 201 OK
Content-Type: application/json
{
"ok": true,
"message": "User successfully created.",
"data": { ... },
"httpCode": 201, // Same as HTTP response code
"error": { ... } // Only present if "ok" == false
}