Fixes #3034 map correct messages to exception when error returned by the Kubernetes API