Error Handling Routes
Closed this issue · 1 comments
janosch09 commented
All Routes should return HTTP Code 200 in success case with a consistent Return Body
Example:
{
"status": "created".
"data": {...}
}
In Error Case they should return an Error code with consistent Return Body
Example:
{
"status": "error".
"data": "ingredient not found"
}