I like simple structured messages using JSON in error responses, similar to Stripe, Uber and many others… {
"error": {
"type": "validation_failed",
"message": "Username is a required field"
}
} In my last story, I wrote about HTTP Logging and in that I mentioned that I have used “chained” middleware…