io.hyperfoil.tools.horreum.server.JWTBadRequestException Maven / Gradle / Ivy
package io.hyperfoil.tools.horreum.server;
import jakarta.ws.rs.BadRequestException;
import jakarta.ws.rs.core.Response;
public class JWTBadRequestException extends BadRequestException {
public JWTBadRequestException() {
super(Response.status(Response.Status.BAD_REQUEST)
.entity("It seems that you are trying to pass JWT token as Horreum token. Please use HTTP header "
+ "'Authorization: Bearer ' instead.")
.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy