I'm creating a simple XML API in Rails, and currently, when there's an error, it renders the standard HTML error pages in public/
, e.g. error in /tests.xml
causes rendering of public/404.html
.
Is there a way to make it render public/404.xml
instead?