forked from gothing/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.go
63 lines (61 loc) · 1.58 KB
/
status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package draft
// StatusType -
type StatusType string
// Status — возможные статусы ответа
var Status = struct {
Processing StatusType
OK StatusType
Accepted StatusType
NonAuthoritative StatusType
Partial StatusType
Move StatusType
Found StatusType
NotModified StatusType
Invalid StatusType
PaymentRequired StatusType
Denied StatusType
NotFound StatusType
Unacceptable StatusType
Timeout StatusType
Conflict StatusType
ExpectationFailed StatusType
Unprocessable StatusType
FailedDependency StatusType
Locked StatusType
UpgradeRequired StatusType
ManyRequests StatusType
RetryWith StatusType
UnavailableForLegalReasons StatusType
Fail StatusType
NotImplemented StatusType
Unavaliable StatusType
Insufficient StatusType
}{
"processing",
"ok",
"accepted",
"non_authoritative",
"partial",
"move",
"found",
"notmodified",
"invalid",
"payment_required",
"denied",
"notfound",
"unacceptable",
"timeout",
"conflict",
"expectation_failed",
"unprocessable",
"failed_dependency",
"locked",
"upgrade_required",
"many_requests",
"retry_with",
"unavailable_for_legal_reasons",
"fail",
"not_implemented",
"unavaliable",
"insufficient",
}