I was hoping to catch all connection errors (and return 503 as appropriate) whenever
error.code was one of the appropriate constants, such as errors.networkError, errors.connectError, etc. However, I found that if CB server is down, the bucket operations raise an error with a message but no code:
message: cannot perform operations on a shutdown bucket
This is due to bucket.js
throw new Error('cannot perform operations on a shutdown bucket');
Was this done intentionally?
Any chance this will be changed to provide a code?