@@ -0,0 +1,559 @@
+package org.intermine.webservice.server.exceptions;%0A%0Aimport org.intermine.webservice.server.output.Output;%0A%0Apublic class UnauthorizedException extends ServiceException %7B%0A%0A    private static final long serialVersionUID = 1L;%0A%0A    public UnauthorizedException() %7B%0A        super(%22This service requires authentication.%22);%0A        initResponseCode();%0A    %7D%0A%0A    public UnauthorizedException(String message) %7B%0A        super(message);%0A        initResponseCode();%0A    %7D%0A%0A    private void initResponseCode() %7B%0A        setHttpErrorCode(Output.SC_UNAUTHORIZED);%0A    %7D%0A%7D%0A

Send 406 codes when appropriate