responseObject
ResponseObject is a generic term used in software development to describe a structured object that carries information returned by a function, service, or API call. The goal is to provide a consistent, predictable container that callers can inspect to determine success, extract data, and handle errors.
Typically a responseObject includes fields such as success or ok (boolean), status or code (numeric HTTP status),
Common design patterns include standardizing on a single shape across endpoints, documenting the contract, and distinguishing
Example: { "success": true, "statusCode": 200, "data": { "user": { "id": 123, "name": "Alice" } }, "message": "Request completed successfully" }