Partager via


StatusCodes Classe

Codes d’état HTTP retournés par les opérations REST

Héritage
builtins.object
StatusCodes

Constructeur

StatusCodes()

Attributs

ACCEPTED

ACCEPTED = 202

BAD_REQUEST

BAD_REQUEST = 400

CONFLICT

CONFLICT = 409

CREATED

CREATED = 201

FAILED_DEPENDENCY

FAILED_DEPENDENCY = 424

FORBIDDEN

FORBIDDEN = 403

GONE

GONE = 410

INTERNAL_SERVER_ERROR

INTERNAL_SERVER_ERROR = 500

METHOD_NOT_ALLOWED

METHOD_NOT_ALLOWED = 405

NOT_FOUND

NOT_FOUND = 404

NOT_MODIFIED

NOT_MODIFIED = 304

NO_CONTENT

NO_CONTENT = 204

OK

OK = 200

OPERATION_CANCELLED

OPERATION_CANCELLED = 1201

OPERATION_PAUSED

OPERATION_PAUSED = 1200

PRECONDITION_FAILED

PRECONDITION_FAILED = 412

REQUEST_ENTITY_TOO_LARGE

REQUEST_ENTITY_TOO_LARGE = 413

REQUEST_TIMEOUT

REQUEST_TIMEOUT = 408

RETRY_WITH

RETRY_WITH = 449

SERVICE_UNAVAILABLE

SERVICE_UNAVAILABLE = 503

TOO_MANY_REQUESTS

TOO_MANY_REQUESTS = 429

UNAUTHORIZED

UNAUTHORIZED = 401