Variant

error

A common error type used by many functions in this package.

variant error {
  generic-error,
  invalid-argument,
  auxiliary-error,
  buffer-len(u64),
  unsupported,
  http-invalid,
  http-user,
  http-incomplete,
  cannot-read,
  http-head-too-large,
  http-invalid-status,
  limit-exceeded,
}

Cases

CasePayloadDescription
generic-errorGeneric error value.
invalid-argumentInvalid argument.
auxiliary-errorAuxiliary error value.
buffer-lenu64Buffer length error.
unsupportedUnsupported operation error.
http-invalidInvalid HTTP error.
http-userHTTP user error.
http-incompleteHTTP incomplete message error.
cannot-readCannot read.
http-head-too-largeMessage head too large.
http-invalid-statusInvalid HTTP status.
limit-exceededLimit exceeded