mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-19 04:32:28 +03:00
Add Cloudflare-specific HTTP status codes for improved error handling
This commit is contained in:
parent
589b5dca9e
commit
ee838de648
|
@ -91,3 +91,16 @@ HTTP_508_LOOP_DETECTED = 508
|
||||||
HTTP_509_BANDWIDTH_LIMIT_EXCEEDED = 509
|
HTTP_509_BANDWIDTH_LIMIT_EXCEEDED = 509
|
||||||
HTTP_510_NOT_EXTENDED = 510
|
HTTP_510_NOT_EXTENDED = 510
|
||||||
HTTP_511_NETWORK_AUTHENTICATION_REQUIRED = 511
|
HTTP_511_NETWORK_AUTHENTICATION_REQUIRED = 511
|
||||||
|
# Cloudflare-specific HTTP status codes
|
||||||
|
HTTP_520_UNKNOWN_ERROR = 520
|
||||||
|
HTTP_521_WEB_SERVER_IS_DOWN = 521
|
||||||
|
HTTP_522_CONNECTION_TIMED_OUT = 522
|
||||||
|
HTTP_523_ORIGIN_IS_UNREACHABLE = 523
|
||||||
|
HTTP_524_A_TIMEOUT_OCCURRED = 524
|
||||||
|
HTTP_525_SSL_HANDSHAKE_FAILED = 525
|
||||||
|
HTTP_526_INVALID_SSL_CERTIFICATE = 526
|
||||||
|
HTTP_527_RAILGUN_ERROR = 527
|
||||||
|
HTTP_530_ORIGIN_DNS_ERROR = 530
|
||||||
|
HTTP_531_ORIGIN_CONNECTION_TIMEOUT = 531
|
||||||
|
HTTP_532_ORIGIN_READ_TIMEOUT = 532
|
||||||
|
HTTP_533_ORIGIN_UNCERTAIN_ERROR = 533
|
||||||
|
|
Loading…
Reference in New Issue
Block a user