{"id":17497565,"url":"https://github.com/simonepri/restify-errors-options-errno","last_synced_at":"2025-03-29T17:22:18.639Z","repository":{"id":66099003,"uuid":"98896878","full_name":"simonepri/restify-errors-options-errno","owner":"simonepri","description":"☎️ Add errno to Restify's errors","archived":false,"fork":false,"pushed_at":"2018-02-22T20:07:56.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T02:36:21.739Z","etag":null,"topics":["restify","restify-errors","restify-errors-options","restify-errors-options-errno"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonepri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-31T14:17:10.000Z","updated_at":"2017-09-06T17:36:22.000Z","dependencies_parsed_at":"2023-04-14T19:05:37.327Z","dependency_job_id":null,"html_url":"https://github.com/simonepri/restify-errors-options-errno","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.24,"last_synced_commit":"e825c361d070bcdef125b96abbe2b03479573b0c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Frestify-errors-options-errno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Frestify-errors-options-errno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Frestify-errors-options-errno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Frestify-errors-options-errno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonepri","download_url":"https://codeload.github.com/simonepri/restify-errors-options-errno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924431,"owners_count":20694728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["restify","restify-errors","restify-errors-options","restify-errors-options-errno"],"created_at":"2024-10-19T15:58:47.243Z","updated_at":"2025-03-29T17:22:18.615Z","avatar_url":"https://github.com/simonepri.png","language":"JavaScript","readme":"# restify-errors-options-errno\n[![Travis CI](https://travis-ci.org/simonepri/restify-errors-options-errno.svg?branch=master)](https://travis-ci.org/simonepri/restify-errors-options-errno) [![Codecov](https://img.shields.io/codecov/c/github/simonepri/restify-errors-options-errno/master.svg)](https://codecov.io/gh/simonepri/restify-errors-options-errno) [![npm](https://img.shields.io/npm/dm/restify-errors-options-errno.svg)](https://www.npmjs.com/package/restify-errors-options-errno) [![npm version](https://img.shields.io/npm/v/restify-errors-options-errno.svg)](https://www.npmjs.com/package/restify-errors-options-errno) [![npm dependencies](https://david-dm.org/simonepri/restify-errors-options-errno.svg)](https://david-dm.org/simonepri/restify-errors-options-errno) [![npm dev dependencies](https://david-dm.org/simonepri/restify-errors-options-errno/dev-status.svg)](https://david-dm.org/simonepri/restify-errors-options-errno#info=devDependencies)\n\u003e 🐛 Add errno to Restify's errors!\n\nBased on [restify-errors-options](https://github.com/simonepri/restify-errors-options)\n\n\u003chr\u003e\n\u003cp align=\"center\"\u003e\u003cstrong\u003eDEPRECATED!!!\u003c/strong\u003e\u003c/p\u003e\n\u003chr\u003e\n\n## Install\n\n```\n$ npm install --save restify-errors-options-errno\n```\n\n## Usage\n```js\nconst restifyErrorOtionsErrno = require('restify-errors-options-errno');\n// Is extremely important to require restify-errors-options-errno before restify.\nconst restify = require('restify');\n\nrestifyErrorOtionsErrno.install();\nvar server = restify.createServer();\n\nserver.on('MethodNotAllowed', (req, res, err, cb) =\u003e {\n  console.log(err.body.errno);\n  //=\u003e 'MNAE'\n  cb();\n});\n\nconst err = new restify.errors.MethodNotAllowedError({errno: '42'}});\nconsole.log(err.toJSON());\n//=\u003e {code: 'MethodNotAllowed', message: '', errno: '42'}\n```\n\n## Authors\n* **Simone Primarosa** - [simonepri](https://github.com/simonepri)\n\nSee also the list of [contributors](https://github.com/simonepri/restify-errors-options-errno/contributors) who participated in this project.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonepri%2Frestify-errors-options-errno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonepri%2Frestify-errors-options-errno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonepri%2Frestify-errors-options-errno/lists"}