The error returned in Azurite is inconsistent with the one in Azure when use unauthorized queueClient to perform operation
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
**Error Description:**
The error returned in Azurite is inconsistent with the one in Azure when use unauthorized queueClient to perform operation.
In Azure, the error is shown as following:

In Azurite, the error is shown as following:

Note: Azurite doesn't define error `ResourceNotFound`.
**To Reproduce**
The demo code is shown as following:
```
import { QueueClient,StorageSharedKeyCredential, QueueServiceClient } from "@azure/storage-queue"
import * as assert from "assert"
async function main(){
const queueServiceClient = new QueueServiceClient("",new StorageSharedKeyCredential("",""));
const queueClient = queueServiceClient.getQueueClient("");
const unauthorizedQueueClient = new QueueClient(queueClient.url);
await unauthorizedQueueClient.create();
}
main().catch((err)=>{
assert.ok((err as any).response.parsedBody.Code === "ResourceNotFound");
});
```
**Expected Behavior**
The error returned in Azurite is consistent with the one in Azure when use unauthorized queueClient to perform operation.
@jongio for notification.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.