Skip to content
Snippets Groups Projects
Commit 7a73871c authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

fix: Use FORBIDDEN enum instead of 403 magic number for blocked mapper

parent 408accfb
No related branches found
No related tags found
1 merge request!227feat: Add handling for blocked users in validation and lookups
Pipeline #81618 passed
......@@ -12,6 +12,7 @@ package org.eclipsefoundation.git.eca.resource.mappers;
import org.eclipsefoundation.efservices.exceptions.BlockedUserException;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.Response.Status;
import jakarta.ws.rs.ext.ExceptionMapper;
/**
......@@ -21,6 +22,6 @@ public class BlockedUserExceptionMapper implements ExceptionMapper<BlockedUserEx
@Override
public Response toResponse(BlockedUserException exception) {
return Response.status(403).build();
return Response.status(Status.FORBIDDEN).build();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment