Custom Response Formatting
How It Works
Response Structure
{
"lam.response": {
"statusCode": 200 | 201 | 400 | 404 | ...,
"message": "message",
"data": {
// Your response data here
},
"error": {
"code": "ERROR_CODE",
"message": "Error description",
"details": "Additional error details",
"field_errors": {
"field1": "Field-specific error message"
}
}
}
}Examples
Success Response
Error Response
Authentication Check
Use Cases
Last updated
Was this helpful?