icorrectly handle not_found error from validate_doc_read