Add an error endpoint for testing