1
0
forked from aniani/gmnisrv
gmnisrv/include/gemini.h
2020-09-26 13:39:37 -04:00

28 lines
795 B
C

#ifndef GMNISRV_GEMINI_H
#define GMNISRV_GEMINI_H
#define GEMINI_MAX_URL 1024
enum gemini_status {
GEMINI_STATUS_NONE = 0,
GEMINI_STATUS_INPUT = 10,
GEMINI_STATUS_SENSITIVE_INPUT = 11,
GEMINI_STATUS_SUCCESS = 20,
GEMINI_STATUS_REDIRECT_TEMPORARY = 30,
GEMINI_STATUS_REDIRECT_PERMANENT = 31,
GEMINI_STATUS_TEMPORARY_FAILURE = 40,
GEMINI_STATUS_SERVER_UNAVAILABLE = 41,
GEMINI_STATUS_CGI_ERROR = 42,
GEMINI_STATUS_PROXY_ERROR = 43,
GEMINI_STATUS_SLOW_DOWN = 44,
GEMINI_STATUS_PERMANENT_FAILURE = 50,
GEMINI_STATUS_NOT_FOUND = 51,
GEMINI_STATUS_GONE = 52,
GEMINI_STATUS_PROXY_REQUEST_REFUSED = 53,
GEMINI_STATUS_BAD_REQUEST = 59,
GEMINI_STATUS_CLIENT_CERTIFICATE_REQUIRED = 60,
GEMINI_STATUS_CERTIFICATE_NOT_AUTHORIZED = 61,
GEMINI_STATUS_CERTIFICATE_NOT_VALID = 62,
};
#endif