Rest API - Advanced Patterns
You have this error response from a REST API:
But your client expects error details under the key "message" instead of "error". How can you fix this to follow consistent error patterns?
{
"error": "Invalid ID",
"code": 400
}But your client expects error details under the key "message" instead of "error". How can you fix this to follow consistent error patterns?
