Compartir a través de


OperationResult Clase

Resultado de una operación.

Herencia
OperationResult

Constructor

OperationResult(*, status: str | None = None, status_code: str | HttpStatusCode | None = None, error: OperationError | None = None, **kwargs)

Parámetros

status
str
Requerido

El estado de la operación.

status_code
str o HttpStatusCode
Requerido

Código de estado de la operación. Entre los valores posibles se incluyen: "Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "MovedPermanently", "Redirect", "SeeOther", "NotModModified", "UseProxy", "Unused", "TemporaryRedirect", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", " LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported".

error
OperationError
Requerido

Detalles del error de la operación en caso de error.