Handle error from backend¶
Overview¶
Documentation for error code namespace and standard output
Based on the template of error from part of UI component and Site-map
Then in UI frontend side will mapping directly with the JSON error that returned from BE service.
The documentation has been writed at Technical > API > Error Handler
The error required mapping on status='failure'
and pointer into the node of error
with following mapping attributes:
The table of mapping attributes:
BE | FE |
---|---|
@type | |
trace_id | $TRACE_ID |
code | $CODE |
type | $TYPE |
message | $MESSAGE |
detail | $DETAIL |
timestamp | $TIMESTAMP |
context | |
request | |
application | |
suggestion | $SUGGESTION |
documentation_url | $DOCUMENTATION_URL |