add documentation for error routes