File tree 2 files changed +21
-3
lines changed
graphql-error-types/src/main
java/com/netflix/graphql/types/errors
resources/META-INF/schema
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 22
22
import static com .netflix .graphql .types .errors .ErrorType .*;
23
23
24
24
/**
25
- * The ErrorDetail is an optional field which will provide more fine grained information on the error condition.
25
+ * The ErrorDetail is an optional field which will provide more fine- grained information on the error condition.
26
26
* This allows the ErrorType enumeration to be small and mostly static so that application branching logic
27
27
* can depend on it. The ErrorDetail provides a more specific cause for the error. This enumeration will
28
28
* be much larger and likely change/grow over time.
@@ -59,11 +59,20 @@ enum Common implements ErrorDetail {
59
59
* The server detected that the client is exhibiting a behavior that
60
60
* might be generating excessive load.
61
61
* <p>
62
- * HTTP Mapping: 429 Too Many Requests or 420 Enhance Your Calm
62
+ * HTTP Mapping: 420 Enhance Your Calm
63
63
* Error Type: UNAVAILABLE
64
64
*/
65
65
ENHANCE_YOUR_CALM (UNAVAILABLE ),
66
66
67
+ /**
68
+ * The server detected that the client is exhibiting a behavior that
69
+ * might be generating excessive load.
70
+ * <p>
71
+ * HTTP Mapping: 429 Too Many Requests
72
+ * Error Type: UNAVAILABLE
73
+ */
74
+ TOO_MANY_REQUESTS (UNAVAILABLE ),
75
+
67
76
/**
68
77
* The requested field is not found in the schema.
69
78
* <p>
Original file line number Diff line number Diff line change @@ -107,11 +107,20 @@ enum ErrorDetail {
107
107
The server detected that the client is exhibiting a behavior that
108
108
might be generating excessive load.
109
109
110
- HTTP Mapping: 429 Too Many Requests or 420 Enhance Your Calm
110
+ HTTP Mapping: 420 Enhance Your Calm
111
111
Error Type: UNAVAILABLE
112
112
"""
113
113
ENHANCE_YOUR_CALM
114
114
115
+ """
116
+ The server detected that the client is exhibiting a behavior that
117
+ might be generating excessive load.
118
+
119
+ HTTP Mapping: 429 Too Many Requests
120
+ Error Type: UNAVAILABLE
121
+ """
122
+ TOO_MANY_REQUESTS
123
+
115
124
"""
116
125
Request failed due to network errors.
117
126
You can’t perform that action at this time.
0 commit comments