update status code names to match the spec
This commit is contained in:
parent
c20619ffcb
commit
1b07b0a594
|
@ -9,6 +9,14 @@
|
|||
|
||||
#### Internal Framework
|
||||
|
||||
- The status code definitions have been updated to match the recent changes
|
||||
to the gemini spec:
|
||||
- 21 ``SUCCESS_END_OF_SESSION`` -> (removed)
|
||||
- 61 ``TRANSIENT_CERTIFICATE_REQUESTED`` -> ``CERTIFICATE_NOT_AUTHORISED``
|
||||
- 62 ``AUTHORISED_CERTIFICATE_REQUIRED`` -> ``CERTIFICATE_NOT_VALID``
|
||||
- 63 ``CERTIFICATE_NOT_ACCEPTED`` -> (removed)
|
||||
- 64 ``FUTURE_CERTIFICATE_REJECTED`` -> (removed)
|
||||
- 65 ``EXPIRED_CERTIFICATE_REJECTED`` -> (removed)
|
||||
- If a gemini response returns a twisted.Deferred object, the errback will
|
||||
now be invoked when the TCP connection is closed.
|
||||
- Added a new example that demonstrates streaming data to client connections
|
||||
|
|
|
@ -17,7 +17,6 @@ class Status:
|
|||
SENSITIVE_INPUT = 11
|
||||
|
||||
SUCCESS = 20
|
||||
SUCCESS_END_OF_SESSION = 21
|
||||
|
||||
REDIRECT_TEMPORARY = 30
|
||||
REDIRECT_PERMANENT = 31
|
||||
|
@ -35,11 +34,8 @@ class Status:
|
|||
BAD_REQUEST = 59
|
||||
|
||||
CLIENT_CERTIFICATE_REQUIRED = 60
|
||||
TRANSIENT_CERTIFICATE_REQUESTED = 61
|
||||
AUTHORISED_CERTIFICATE_REQUIRED = 62
|
||||
CERTIFICATE_NOT_ACCEPTED = 63
|
||||
FUTURE_CERTIFICATE_REJECTED = 64
|
||||
EXPIRED_CERTIFICATE_REJECTED = 65
|
||||
CERTIFICATE_NOT_AUTHORISED = 61
|
||||
CERTIFICATE_NOT_VALID = 62
|
||||
|
||||
|
||||
class Request:
|
||||
|
|
Loading…
Reference in New Issue