Introduce HttpStatusCode
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / JaxRsNorthbound.java
index af81a9dbe322abd3606eeb30a39d9f6ee8833776..2e78aba2d0f3d2444efa1db5fa83a2af70124c5f 100644 (file)
@@ -65,10 +65,12 @@ public final class JaxRsNorthbound implements AutoCloseable {
 
                         @Override
                         public Set<Object> getSingletons() {
+                            final var errorTagMapping = servletFactory.errorTagMapping();
+
                             return Set.of(
                                 new JsonJaxRsFormattableBodyWriter(), new XmlJaxRsFormattableBodyWriter(),
-                                new RestconfDocumentedExceptionMapper(databindProvider),
-                                new JaxRsRestconf(server, servletFactory.prettyPrint()));
+                                new RestconfDocumentedExceptionMapper(databindProvider, errorTagMapping),
+                                new JaxRsRestconf(server, errorTagMapping, servletFactory.prettyPrint()));
                         }
                     }).build())
                 .asyncSupported(true)