It would be nice if the promises rejected with an error and not with an object. Currently when I try to retrieve an object that is not present a 404 is thrown as an object which doesn't implement Error
https://github.com/kubernetes-client/javascript/blob/master/src/gen/api/customObjectsApi.ts#L151