One of my packages (redcap
) is a service-specific wrapper around the venerable requests
. requests
exposes the HTTPError
exception that is raised e.g. when r.raise_for_status()
is called on a 400 response.
Since users of my package might want to catch HTTPError
s, what is the best way to design my API?