Add support for custom error documents