Switch status codes to two digits for new spec

This commit is contained in:
Michael Lazar 2019-08-08 21:34:06 -04:00
parent 255e67457a
commit c477049a0b
1 changed files with 6 additions and 7 deletions

View File

@ -39,13 +39,12 @@ automatically be generated and saved to your temporary file directory.
""" """
# Gemini response status codes # Gemini response status codes
STATUS_SUCCESS = 2 STATUS_INPUT_REQUIRED = 10
STATUS_NOT_FOUND = 4 STATUS_SUCCESS = 20
STATUS_SERVER_ERROR = 5 STATUS_REDIRECT = 30
STATUS_NOT_FOUND = 40
# Gemini response status codes, provisional STATUS_SERVER_ERROR = 50
STATUS_MOVED = 3 STATUS_CERTIFICATE_ERROR = 60
STATUS_TOO_MANY_REQUESTS = 9
class EchoApp: class EchoApp: