npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@twilio/voice-errors

v1.8.0

Published

Voice Error Codes

Downloads

532,962

Readme

Twilio Voice Errors

All Twilio Voice errors are defined in twilio-voice-errors.json. Other errors already defined by Twilio are defined in twilio-authorization-errors.json and twilio-rest-errors.json.

  • Errors defined in Twilio Client are excluded from this branch. To ensure that new error codes do not overlap with previously defined errors, check Twilio CLIENT error codes and Twilio Error Codes.
  • Programmable Voice uses the same error code range as Twilio Client.
  • Authorization errors are defined using the 201xx REST authorization errors instead of the range defined in Twilio Client as 312xx.
  • Twilio Error code 21218 is preferred over Twilio Client code 31001 for TwiML application not found.

Setup

Ensure you have Node installed. Then, run the following:

git clone https://code.hq.twilio.com/client/twilio-voice-errors
cd twilio-voice-errors
npm install

Usage

Previewing the Error Codes

This project can generate table and dictionary views of the Voice errors. Just run the following command in the root of the project:

npm run generate

This will produce dictionary.md and table.md, respectively.

Previewing on GitHub

If you'd like to preview dictionary.md and table.md on GitHub, you can automatically generate and push these artifacts to a dedicated preview branch. where you can see rendered versions of dictionary.md and tree.md rendered. Just run the following command in the root of the project:

npm run preview

Publishing a New Version of this Specification to NPM

This project defines all Twilio Voice errors, so if you would like to add a new error code, you must propose it and add it to this document, per CONTRIBUTING.md. Once added, you should cut a new minor version of this document by updating the version number in package.json, eg 1.0.0 -> 1.1.0.

Make sure this version update has been committed and pushed to the primary branch. Then, in order to publish to NPM, run:

npm publish

Generic Twilio Errors

If you are using generic Twilio Errors that are not in twilio-voice-errors.json, add them to twilio-rest-errors.json or twilio-authorization-errors.json so that code can be generated for them as well.

Code Generation

TODO: Implement code generation