Eliminate restconf.nb.rfc8040.jersey
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / legacy / ErrorTags.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.restconf.nb.rfc8040.legacy;
9
10 import javax.ws.rs.core.Response.Status;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.yangtools.yang.common.ErrorTag;
13
14 /**
15  * Additional {@link ErrorTag}s.
16  */
17 @NonNullByDefault
18 public final class ErrorTags {
19     /**
20      * Error reported when the request is valid, but the resource cannot be accessed. This tag typically maps to
21      * {@link Status#SERVICE_UNAVAILABLE}.
22      */
23     // FIXME: redefine as SERVICE_UNAVAILABLE? It would be more obvious
24     public static final ErrorTag RESOURCE_DENIED_TRANSPORT = new ErrorTag("resource-denied-transport");
25
26     private ErrorTags() {
27         // Hidden on purpose
28     }
29 }