In the grpc-web package the status codes are in the wrong order causing them to be interpreted differently, so when comparing status codes that we get from a service it is not the same, this commit fixes that.
This ordering is causing misinterpretation of error codes:
In the grpc-web package the status codes are in the wrong order causing them to be interpreted differently, so when comparing status codes that we get from a service it is not the same, this commit fixes that.
This ordering is causing misinterpretation of error codes:![Wrong ordering](https://user-images.githubusercontent.com/17927745/190854242-8feb96ee-ea6e-4743-a0dc-2da2aa75d18a.png)
Correct ordering as per gRPC specs:![Correct order](https://user-images.githubusercontent.com/17927745/190854310-adfc7f93-78c0-46e8-8066-e5928b6966bd.png)
This fixes issue #1243