I'm writing REST API for application with Hanami ruby web framework, and I'm wondering how to set error format to JSON. For example,when 404 error occurred it should return response with body {'message': 'Method not found'}, and Content-Type: 'application/json'