feat(import): preserve supported HTTP contracts

This commit is contained in:
bsodfather committed 2026-09-13 03:30:31 +03:00
1 parent 083974c27f
commit f8ee7c9bfe
87 files changed
+7496 -534

No files matched your search

+4
View File
@@ -33,6 +33,8 @@ pub enum RestAdapterError {
InvalidHeaderName { header: String },
#[error("invalid header value for {header}")]
InvalidHeaderValue { header: String },
#[error("invalid REST request body contract")]
InvalidBodyContract { reason: String },
#[error("outbound target is not allowed")]
TargetNotAllowed { target: String },
#[error("outbound redirects are not allowed")]
@@ -49,6 +51,8 @@ pub enum RestAdapterError {
WindowExpired,
#[error("rest endpoint returned status {status}")]
UnexpectedStatus { status: u16, body: Value },
#[error("rest endpoint response does not match the Operation contract: {reason}")]
InvalidResponseContract { reason: String },
#[error("sse stream produced malformed event payload")]
InvalidSseEvent,
}