class StatusController {

    public static final String PATH = "status";

    private static final Logger LOGGER = LoggerFactory.getLogger(StatusController.class);

    @GET
    @Path("/{uuid}")
    public Response getStatus(@PathParam("uuid") String uuid) {
        ApiTask apiTask = ApiTaskManager.getInstance().getApiTask(uuid);
        if (apiTask == null) {
            return Response.status(Response.Status.NOT_FOUND).build();
        }

        if (apiTask.isDone()) {
            return apiTask.getResponse();
        } else {
            return Response.status(Response.Status.ACCEPTED).build();
        }
    }

    @DELETE
    @Path("/{uuid}")
    public Response delete(@PathParam("uuid") String uuid) {<FILL_FUNCTION_BODY>}
}

        ApiTask apiTask = ApiTaskManager.getInstance().getApiTask(uuid);
        if (apiTask == null) {
            return Response.status(Response.Status.NOT_FOUND).build();
        }

        if (!apiTask.isDone()) {
            LOGGER.log(Level.WARNING, "API task {0} not yet done", apiTask);
            return Response.status(Response.Status.BAD_REQUEST).build();
        }

        ApiTaskManager.getInstance().deleteApiTask(uuid);

        return Response.ok().build();
    
<no_super_class>