pub enum HttpCertificationError {
MalformedUrl(String),
Utf8ConversionError(FromUtf8Error),
WildcardPathNotValidForRequestPath {
wildcard_path: String,
request_path: String,
},
CertificateExpressionHeaderMismatch {
expected: String,
actual: String,
},
CertificateExpressionHeaderMissing {
expected: String,
},
MultipleCertificateExpressionHeaders {
expected: String,
},
InvalidHttpStatusCode {
status_code: u16,
},
}Expand description
HTTP certification error type.
Variants§
MalformedUrl(String)
The URL was malformed and could not be parsed correctly.
Utf8ConversionError(FromUtf8Error)
Error converting UTF-8 string.
WildcardPathNotValidForRequestPath
Error converting bytes to string.
Fields
CertificateExpressionHeaderMismatch
The IC-CertificateExpression header in a response did not match the Cel expression used to certify the HttpResponse.
Fields
expected: StringThe expected value of the IC-CertificateExpression header. This is the Cel expression used to certify the HttpResponse.
CertificateExpressionHeaderMissing
The IC-CertificateExpression header was missing from the HttpResponse.
Fields
expected: StringThe expected value of the IC-CertificateExpression header. This is the Cel expression used to certify the HttpResponse.
MultipleCertificateExpressionHeaders
The IC-CertificateExpression header in a response contained multiple values.
Fields
expected: StringThe expected value of the IC-CertificateExpression header. This is the Cel expression used to certify the HttpResponse.
InvalidHttpStatusCode
Error converting a number into an HTTP status code.
Trait Implementations§
Source§impl Clone for HttpCertificationError
impl Clone for HttpCertificationError
Source§impl Debug for HttpCertificationError
impl Debug for HttpCertificationError
Source§impl Display for HttpCertificationError
impl Display for HttpCertificationError
Source§impl Error for HttpCertificationError
impl Error for HttpCertificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()