cos.headBucket({Bucket: 'examplebucket-1250000000',Region: 'COS_REGION',}, function(err, data) {if (err) {console.log(err.error);}});
Parameter | Description | Type |
err | Error code, which is returned when an error (network error or service error) occurs. If the request is successful, this parameter is empty. For more information, please see Error Codes. | Object |
- error | Error message for the request | Object/String |
Parameter | Description | Type |
err | Error code, which is returned when an error (network error or service error) occurs. If the request is successful, this parameter is empty. For more information, please see Error Codes. | Object |
- statusCode | HTTP status code, such as `200`, `403`, and `404` | Number |
- headers | Headers | Object |
- error | Error information | Object/String |
- - Code | String | |
- - Message | String | |
- - RequestId | Unique ID of the request in the server request log that can be submitted when you contact us for troubleshooting | String |
RequestId
) returned when the request error occurs.RequestId
and click Diagnose.
Was this page helpful?