diff options
Diffstat (limited to 'src/gemini.h')
-rw-r--r-- | src/gemini.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/gemini.h b/src/gemini.h deleted file mode 100644 index 564de65b..00000000 --- a/src/gemini.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <the_Foundation/string.h> | ||
4 | |||
5 | /* Response status codes. */ | ||
6 | enum iGmStatusCode { | ||
7 | clientSide_GmStatusCode = -100, /* clientside status codes */ | ||
8 | invalidRedirect_GmStatusCode, | ||
9 | invalidHeader_GmStatusCode, | ||
10 | unsupportedMimeType_GmStatusCode, | ||
11 | failedToOpenFile_GmStatusCode, | ||
12 | unknownStatusCode_GmStatusCode, | ||
13 | none_GmStatusCode = 0, | ||
14 | input_GmStatusCode = 10, | ||
15 | sensitiveInput_GmStatusCode = 11, | ||
16 | success_GmStatusCode = 20, | ||
17 | redirectTemporary_GmStatusCode = 30, | ||
18 | redirectPermanent_GmStatusCode = 31, | ||
19 | temporaryFailure_GmStatusCode = 40, | ||
20 | serverUnavailable_GmStatusCode = 41, | ||
21 | cgiError_GmStatusCode = 42, | ||
22 | proxyError_GmStatusCode = 43, | ||
23 | slowDown_GmStatusCode = 44, | ||
24 | permanentFailure_GmStatusCode = 50, | ||
25 | notFound_GmStatusCode = 51, | ||
26 | gone_GmStatusCode = 52, | ||
27 | proxyRequestRefused_GmStatusCode = 53, | ||
28 | badRequest_GmStatusCode = 59, | ||
29 | clientCertificateRequired_GmStatusCode = 60, | ||
30 | certificateNotAuthorized_GmStatusCode = 61, | ||
31 | certificateNotValid_GmStatusCode = 62, | ||
32 | }; | ||
33 | |||
34 | iDeclareType(GmError) | ||
35 | |||
36 | struct Impl_GmError { | ||
37 | iChar icon; | ||
38 | const char *title; | ||
39 | const char *info; | ||
40 | }; | ||
41 | |||
42 | iBool isDefined_GmError (enum iGmStatusCode code); | ||
43 | const iGmError * get_GmError (enum iGmStatusCode code); | ||