public class ArchivaRestServiceExceptionMapper
implements ExceptionMapper<ArchivaRestServiceException>
{
public Response toResponse( ArchivaRestServiceException e )
{
ArchivaRestError restError = new ArchivaRestError( e );
Response.ResponseBuilder responseBuilder = Response.status( e.getHttpErrorCode() ).entity( restError );
return responseBuilder.build();
}