Running into this bug as I am adding the feature to cancel a queue item to the jenkins-rest java library.
I also lost some time with this return code before seeing this issue, proposed some change to address this