Skip to main content

General Error Pattern & Codes

Description

In all services, a standard JSON error model is returned in case of errors.

This model allows client applications to easily distinguish the error type and take appropriate action.

Error Model Format

{
"isSuccess": false,
"errorCode": "ERR_VALIDATION",
"message": "Required field is missing or has an invalid format.",
"details": {
"field": "email",
"reason": "A valid email address must be provided."
},
"timestamp": "2025-10-13T10:15:30Z",
"traceId": "f6b71239-8cfa-49de-8b5f-53f9fbd173a4"

}
FieldTypeDescription
isSuccessbooleanIndicates whether the operation was successful.
errorCodestringError code defined by the system. (e.g., ERR_UNAUTHORIZED, ERR_VALIDATION)
messagestringDescription message suitable for user display.
detailsobject(Optional) Explains error details on a field basis.
timestampdatetimeTime the error occurred (UTC).
traceIdstringUnique operation ID for logging or error tracking.

General Error Codes

HTTP CodeError CodeDescriptionSuggested Solution
400ERR_VALIDATIONInvalid or missing parameter.Check field types and required status.
401ERR_UNAUTHORIZEDInvalid AccessToken or token expired.Obtain a new AccessToken.
403ERR_FORBIDDENUser does not have permission for this operation.Check user role or permission set.
404ERR_NOT_FOUNDRequested record or resource not found.Verify the submitted code / erpCode value.
409ERR_CONFLICTThe same unique value already exists in the system.code or erpCode may conflict with another record.
500ERR_INTERNALUnexpected server-side error occurred.Contact the technical team using logs or traceId.