Classify a crypto operation error as client (4xx) or server (5xx), and
send it as an RFC 9457 problem. A crypto-lib CryptoError is
classified by its code (crypto-lib's isCallerErrorCode), which the
problem carries as code; a RangeError from @noble/* (input of the
wrong length) is a 400; anything else is a 500.
Classify a crypto operation error as client (4xx) or server (5xx), and send it as an RFC 9457 problem. A crypto-lib
CryptoErroris classified by itscode(crypto-lib'sisCallerErrorCode), which the problem carries ascode; a RangeError from @noble/* (input of the wrong length) is a 400; anything else is a 500.