Kill paused container cause InternalServerErrorException in docker-java is it proper behavior?

Hi,
I started to add some additional integration tests for docker-java lib. And I faced the problem, that for some operations docker returns InternalServerErrorException, e.g. kill paused container, kill stopped container. Is it fine or docker | docker-java should return another exception???

This is the expected behavior as docker-java has no knowledge of the container state. It just transports the HTTP error code 500 from the docker remote API to the user.