nva.commons.apigateway.exceptions.UnauthorizedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apigateway Show documentation
Show all versions of apigateway Show documentation
A commons library for the NVA project
package nva.commons.apigateway.exceptions;
import java.net.HttpURLConnection;
public class UnauthorizedException extends ApiGatewayException {
public UnauthorizedException(String message) {
super(message);
}
public UnauthorizedException() {
this("Unauthorized");
}
@Override
protected Integer statusCode() {
return HttpURLConnection.HTTP_UNAUTHORIZED;
}
}