status_codes.py
This file
Path
httpcore/status_codes.py
58 lines · 1.8 KiB · Python
Last changed by
RestructuringTom Christiebefore adoptione09fc37
History of this fileTake it
RestructuringTom Christiebefore adoptione09fc37
line 1why, one step back1import enumRollin'Tom Christiebefore adoption8a29a0a
line 2why, one step back2RestructuringTom Christiebefore adoptione09fc37
lines 3–58why, one step back3codes = enum.IntEnum(4 "StatusCode",5 [6 ("continue", 100),7 ("switching_protocols", 101),8 ("ok", 200),9 ("created", 201),10 ("accepted", 202),11 ("non_authoritative_information", 203),12 ("no_content", 204),13 ("reset_content", 205),14 ("partial_content", 206),15 ("multi_status", 207),16 ("multiple_choices", 300),17 ("moved_permanently", 301),18 ("found", 302),19 ("see_other", 303),20 ("not_modified", 304),21 ("use_proxy", 305),22 ("reserved", 306),23 ("temporary_redirect", 307),24 ("bad_request", 400),25 ("unauthorized", 401),26 ("payment_required", 402),27 ("forbidden", 403),28 ("not_found", 404),29 ("method_not_allowed", 405),30 ("not_acceptable", 406),31 ("proxy_authentication_required", 407),32 ("request_timeout", 408),33 ("conflict", 409),34 ("gone", 410),35 ("length_required", 411),36 ("precondition_failed", 412),37 ("request_entity_too_large", 413),38 ("request_uri_too_long", 414),39 ("unsupported_media_type", 415),40 ("requested_range_not_satisfiable", 416),41 ("expectation_failed", 417),42 ("unprocessable_entity", 422),43 ("locked", 423),44 ("failed_dependency", 424),45 ("precondition_required", 428),46 ("too_many_requests", 429),47 ("request_header_fields_too_large", 431),48 ("unavailable_for_legal_reasons", 451),49 ("internal_server_error", 500),50 ("not_implemented", 501),51 ("bad_gateway", 502),52 ("service_unavailable", 503),53 ("gateway_timeout", 504),54 ("http_version_not_supported", 505),55 ("insufficient_storage", 507),56 ("network_authentication_required", 511),57 ],58)