pl.allegro.tech.hermes.management.api.mappers.AuthExceptionMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.api.mappers;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.Provider;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.management.api.auth.AuthException;
@Provider
public class AuthExceptionMapper extends AbstractExceptionMapper {
@Override
Response.Status httpStatus() {
return Response.Status.FORBIDDEN;
}
@Override
ErrorCode errorCode() {
return ErrorCode.AUTH_ERROR;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy