yanehi/raspberrypi-cocktailmachine

Error Handling Routes

Closed this issue · 1 comments

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"
}

Add Error Handling to recipe routes with pull request #34