Software Engineer @seekjobs and chef @CloudRecipesIO
Thank you Prabha Pillay and Pete Cohen. Without your help it would not be possible to write it. Appreciate your help.
Just a semantic note. I would use 400 error code on user’s input validation errors, 404 when service can’t find a resource and 500 when service crashes (for instance, DB is not available)