001package co.codewizards.cloudstore.rest.server.auth;
002
003import javax.ws.rs.WebApplicationException;
004import javax.ws.rs.core.Response;
005import javax.ws.rs.core.Response.Status;
006
007public class NotAuthorizedException extends WebApplicationException{
008
009        public NotAuthorizedException() {
010                super(Response.status(Status.UNAUTHORIZED)
011                                .header("WWW-Authenticate", "Basic realm=\"CloudStoreServer\"")
012                                .build());
013        }
014}