Catch exception if an error occurs in returning the error page.
Updated Data endpoint to return application/json on 404.