StandardErrorPayload
Type Alias: StandardErrorPayload
StandardErrorPayload =
object
Defined in: src/utilities/errors/errorCodes.ts:140
Standard error payload structure returned by REST endpoints.
This type defines the consistent error response format used across all REST API endpoints in the Talawa API.
Example
{
"error": {
"code": "not_found",
"message": "User not found",
"details": { "userId": "123" },
"correlationId": "req-abc123"
}
}
Properties
error
error:
object
Defined in: src/utilities/errors/errorCodes.ts:142
Error container object
code
code:
ErrorCode
Standardized error code from ErrorCode enum
correlationId?
optionalcorrelationId:string
Request correlation ID for tracing
details?
optionaldetails:unknown
Optional additional error context and details
message
message:
string
Human-readable error message