All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.tools.horreum.server.JWTBadRequestException Maven / Gradle / Ivy

There is a newer version: 0.16.3
Show newest version
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