For NodeJS, Typescript applications.
Return unified response on backend error.
Response:
{
"code": "NotFound",
"message": "Requested entity is not found"
}
Response:
{
"code": "Validation",
"validationErrors": {
"field": ["Field is required", "Value must be integer"]
}
}