io.quarkus.resteasy.reactive.server.runtime.exceptionmappers.ForbiddenExceptionMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest Show documentation
Show all versions of quarkus-rest Show documentation
A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
The newest version!
package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import io.quarkus.security.ForbiddenException;
public class ForbiddenExceptionMapper implements ExceptionMapper {
@Override
public Response toResponse(ForbiddenException exception) {
return Response.status(Response.Status.FORBIDDEN).build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy