Skip to content

Commit 6eaf9ae

Browse files
committed
httpev: add permanent redirect status
1 parent 7676063 commit 6eaf9ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

httpev_common.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type status_code =
3636
| `No_content
3737
| `Found
3838
| `Moved
39+
| `Permanent_redirect
3940
| `Bad_request
4041
| `Unauthorized
4142
| `Payment_required
@@ -125,6 +126,7 @@ let status_code : reply_status -> int = function
125126

126127
| `Moved -> 301
127128
| `Found -> 302
129+
| `Permanent_redirect -> 308
128130

129131
| `Bad_request -> 400
130132
| `Unauthorized -> 401
@@ -159,6 +161,7 @@ let show_status_code : status_code -> string = function
159161

160162
| `Moved -> "301 Moved Permanently"
161163
| `Found -> "302 Found"
164+
| `Permanent_redirect -> "308 Permanent Redirect"
162165

163166
| `Bad_request -> "400 Bad Request"
164167
| `Unauthorized -> "401 Unauthorized"

0 commit comments

Comments
 (0)