Add option for specifying custom error documents.