There was an error while loading. Please reload this page.
1 parent 7676063 commit 6eaf9aeCopy full SHA for 6eaf9ae
1 file changed
httpev_common.ml
@@ -36,6 +36,7 @@ type status_code =
36
| `No_content
37
| `Found
38
| `Moved
39
+ | `Permanent_redirect
40
| `Bad_request
41
| `Unauthorized
42
| `Payment_required
@@ -125,6 +126,7 @@ let status_code : reply_status -> int = function
125
126
127
| `Moved -> 301
128
| `Found -> 302
129
+ | `Permanent_redirect -> 308
130
131
| `Bad_request -> 400
132
| `Unauthorized -> 401
@@ -159,6 +161,7 @@ let show_status_code : status_code -> string = function
159
161
160
162
| `Moved -> "301 Moved Permanently"
163
| `Found -> "302 Found"
164
+ | `Permanent_redirect -> "308 Permanent Redirect"
165
166
| `Bad_request -> "400 Bad Request"
167
| `Unauthorized -> "401 Unauthorized"
0 commit comments