1
votes

I want to know what does the error object looks like in the callback function for some azure functions such as blobService.createBlockBlobFromText, blobService.createContainerIfNotExists, documentClient.queryDocuments, documentClient.replaceDocument.

I am able to find their function documentation easily such as https://azure.github.io/azure-storage-node/BlobService.html#createContainerIfNotExists , but it does not explain what the error object look like.

Could you point me its documentation?

1
I am not sure how the Error looks like. Does it contains an status code field? It will be great if there is a documentation. - bunny
So,does my answer helps you? - Jay Gong

1 Answers

1
votes

As I know, SDK source code is based on REST API. If you want to know the error status code,you could refer to the REST API Status Code documents:

Azure Storage Service:https://docs.microsoft.com/en-us/rest/api/storageservices/status-and-error-codes2

Azure Cosmos DB:https://docs.microsoft.com/en-us/rest/api/cosmos-db/http-status-codes-for-cosmosdb

If you want to know the error body,you could catch the http request by Fiddler Tool.