Bringing Rails error handling into line with the rest of the application
Add actions to log bad requests at middleware level