summaryrefslogtreecommitdiff
path: root/src/Status.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Status.php')
-rw-r--r--src/Status.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Status.php b/src/Status.php
new file mode 100644
index 0000000..23fef68
--- /dev/null
+++ b/src/Status.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace GeminiFoundation;
+
+/**
+ * @see gemini://geminiprotocol.net/docs/specification.gmi
+ */
+enum Status: int
+{
+ case INPUT = 10;
+ case SENSITIVE_INPUT = 11;
+ case SUCCESS = 20;
+ case REDIRECT_TEMPORARY = 30;
+ case REDIRECT_PERMANENT = 31;
+ case TEMPORARY_FAILURE = 40;
+ case SERVER_UNAVAILABLE = 41;
+ case CGI_ERROR = 42;
+ case PROXY_ERROR = 43;
+ case SLOW_DOWN = 44;
+ case PERMANENT_FAILURE = 50;
+ case NOT_FOUND = 51;
+ case GONE = 52;
+ case PROXY_REQUEST_REFUSED = 53;
+ case BAD_REQUEST = 59;
+ case CLIENT_CERTIFICATE_REQUIRED = 60;
+ case CERTIFICATE_NOT_AUTHORISED = 61;
+ case CERTIFICATE_NOT_VALID = 62;
+}