Skip to contents

Zenodo returns the reason a deposition was rejected in a nested errors list (e.g. which metadata field is invalid), which is far more useful than the bare status code.

Usage

.zenodo_check_resp(resp, what)

Arguments

resp

an httr2 response

what

what was being attempted, for the message

Value

the parsed body, invisibly; stops on an error status