Error contract: on a mint protocol error (JSON body with code/detail), implementations must
throw an error isMintOperationError accepts, preferably this package's
MintOperationError, with the NUT error code preserved. Wallet behavior that branches on
mint error codes (eg the NUT-20 legacy signature retry) will not engage otherwise.
Pluggable request function used for all mint HTTP calls.