@@ -150,6 +150,50 @@ public class ExtendedErrorCodeOption extends EDNSOption {
150
150
*/
151
151
public static final int INVALID_DATA = 24 ;
152
152
153
+ /**
154
+ * The signature expired before it started to become valid.
155
+ *
156
+ * @since 3.6
157
+ * @see <a href="https://github.com/NLnetLabs/unbound/pull/604#discussion_r802678343">Unbound
158
+ * PR#604</a>
159
+ */
160
+ public static final int SIGNATURE_EXPIRED_BEFORE_VALID = 25 ;
161
+
162
+ /**
163
+ * DNS over QUIC session resumption error.
164
+ *
165
+ * @since 3.6
166
+ * @see <a href="https://www.rfc-editor.org/rfc/rfc9250.html#section-4.5-3">RFC9250, 4.5</a>
167
+ */
168
+ public static final int TOO_EARLY = 26 ;
169
+
170
+ /**
171
+ * The NSEC3 iterations value is not supported.
172
+ *
173
+ * @since 3.6
174
+ * @see <a href="https://www.rfc-editor.org/rfc/rfc9276.html#section-3.2">RFC9276, 3.2</a>
175
+ */
176
+ public static final int UNSUPPORTED_NSEC3_ITERATIONS_VALUE = 27 ;
177
+
178
+ /**
179
+ * Unable to conform to policy.
180
+ *
181
+ * @since 3.6
182
+ * @see <a
183
+ * href="https://datatracker.ietf.org/doc/draft-homburg-dnsop-codcp/01/">draft-homburg-dnsop-codcp,
184
+ * 12</a>
185
+ */
186
+ public static final int UNABLE_TO_CONFORM_TO_POLICY = 28 ;
187
+
188
+ /**
189
+ * Result synthesized from aggressive NSEC cache.
190
+ *
191
+ * @since 3.6
192
+ * @see <a href="https://github.com/PowerDNS/pdns/pull/12334">PowerDNS PR#12334</a>
193
+ * @see <a href="https://datatracker.ietf.org/doc/html/rfc8198">RFC8198</a>
194
+ */
195
+ public static final int SYNTHESIZED = 29 ;
196
+
153
197
@ Getter private int errorCode ;
154
198
@ Getter private String text ;
155
199
@@ -184,6 +228,11 @@ public class ExtendedErrorCodeOption extends EDNSOption {
184
228
codes .add (NO_REACHABLE_AUTHORITY , "NO_REACHABLE_AUTHORITY" );
185
229
codes .add (NETWORK_ERROR , "NETWORK_ERROR" );
186
230
codes .add (INVALID_DATA , "INVALID_DATA" );
231
+ codes .add (SIGNATURE_EXPIRED_BEFORE_VALID , "SIGNATURE_EXPIRED_BEFORE_VALID" );
232
+ codes .add (TOO_EARLY , "TOO_EARLY" );
233
+ codes .add (UNSUPPORTED_NSEC3_ITERATIONS_VALUE , "UNSUPPORTED_NSEC3_ITERATIONS_VALUE" );
234
+ codes .add (UNABLE_TO_CONFORM_TO_POLICY , "UNABLE_TO_CONFORM_TO_POLICY" );
235
+ codes .add (SYNTHESIZED , "SYNTHESIZED" );
187
236
}
188
237
189
238
/**
0 commit comments