Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / northbound / commons / src / main / java / org / opendaylight / controller / northbound / commons / exception / NotImplemented.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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
9 package org.opendaylight.controller.northbound.commons.exception;
10
11 import javax.ws.rs.core.Response;
12
13 /**
14  * Implementation of StatusType for error 501 as in:
15  * http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6
16  */
17 public class NotImplemented implements Response.StatusType {
18     @Override
19     public int getStatusCode() {
20         return 501;
21     }
22
23     @Override
24     public String getReasonPhrase() {
25         return "Not Implemented";
26     }
27
28     @Override
29     public Response.Status.Family getFamily() {
30         return Response.Status.Family.SERVER_ERROR;
31     }
32 }