To make this even better, these enums could be exported in a .ts file so we don't have to create our own representation of these when we are trying to access them in runtime.
Context
We map error notifications for customers based on these status codes. Therefore it is better that they are up to date.
Expected Behavior
We are expecting the enums here to match status codes on https://api.support.vonage.com/hc/en-us/articles/360025561931-What-do-the-Verify-API-response-codes-mean-
Current Behavior
Currently the status codes are wrong in:
Possible Solution
Update the typings:
To make this even better, these enums could be exported in a .ts file so we don't have to create our own representation of these when we are trying to access them in runtime.
Context
We map error notifications for customers based on these status codes. Therefore it is better that they are up to date.
Your Environment