s3-lib: Use ARRAY_SIZE() to walk the error mapping tables