Adding status codes to s3 errors