feat(import): preserve supported HTTP contracts
This commit is contained in:
1 parent
083974c27f
commit
f8ee7c9bfe
87 files changed
+7496
-534
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user