When executing the following code I get the error below:
# Connect to the Measurements database
database = BaseTimeBucket(
credentials=Credentials(),
s3bucket="datacrux",
)

The error actually comes from the following line. I suspect it simply doesn't find the error_codes.txt in the bucket.

Since we are looking for a general solution, it is perhaps the best to add the error_codes.txt to the repo, under measurements/io and with the name basetime_error_codes.txt and parse it in the file basetime.py but outside the BaseTimeBucket class with the name BASETIME_ERROR_CODES. It is perhaps good to add a function as in the file zbase.py to get the error code and in case it is not found to add an "Unrecognized status code". See below:

In short, my suggestion is to:
Of course I am happy to hear about other suggestions on how to solve this issue.