src/main/java/com/authlete/jaxrs/ResponseUtil.java
public static Response bearerError(Status status, String challenge)
    {
        return builder(status).header("WWW-Authenticate", challenge).build();
    }
public static Response bearerError(Status status, String challenge)
    {
        return builder(status).header("WWW-Authenticate", challenge).build();
    }
Create a response with the given status and {@code WWW-Authenticate}
header having the given challenge as its value.