com.nitorcreations.nflow.rest.config.NotFoundExceptionMapper Maven / Gradle / Ivy
package com.nitorcreations.nflow.rest.config;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
public class NotFoundExceptionMapper implements ExceptionMapper {
@Override
public Response toResponse(NotFoundException e) {
return Response.status(Response.Status.NOT_FOUND).build();
}
}