I'm writing Falcon
middleware for my application. When i get any errors i want to raise error, break process and return my custom response, that looks like:
{
"status": 503,
"message": "No Token found. Token is required."
}
But standard Falcon
error implementation does not allow me to set custom fields to my response.
How to solve this problem most properly?