#[non_exhaustive]pub enum ErrorCode {
BadRequest,
Compile,
Unauthorized,
Forbidden,
RunNotFound,
TooManyRuns,
Internal,
}Expand description
Stable error codes returned in the JSON body of every non-2xx response.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadRequest
The request body was malformed or semantically invalid.
Compile
The submitted WorkflowDef failed to compile against the registry.
No valid credential was presented.
Forbidden
The credential lacks the scope this route requires.
RunNotFound
No run exists for the requested id.
TooManyRuns
The concurrency cap is saturated; retry later.
Internal
An unexpected server-side failure. Detail is logged, not returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more