{"id":15622786,"url":"https://github.com/rjz/http-error-factories","last_synced_at":"2025-03-29T16:28:00.067Z","repository":{"id":18588738,"uuid":"21792855","full_name":"rjz/http-error-factories","owner":"rjz","description":"Factory functions for http-custom-errors","archived":false,"fork":false,"pushed_at":"2014-08-16T14:20:40.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T17:28:46.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rjz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-13T14:58:03.000Z","updated_at":"2020-05-26T01:13:29.000Z","dependencies_parsed_at":"2022-09-11T19:11:02.858Z","dependency_job_id":null,"html_url":"https://github.com/rjz/http-error-factories","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fhttp-error-factories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fhttp-error-factories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fhttp-error-factories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fhttp-error-factories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjz","download_url":"https://codeload.github.com/rjz/http-error-factories/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246210827,"owners_count":20741237,"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":[],"created_at":"2024-10-03T09:55:13.838Z","updated_at":"2025-03-29T16:28:00.048Z","avatar_url":"https://github.com/rjz.png","language":"JavaScript","readme":"# HTTP error factories\n\nWraps [jproulx](https://github.com/jproulx)'s\n[`http-custom-errors`](https://github.com/jproulx/node-http-error) with\nfriendly-named factory functions. All credit there--this extension is a matter\nof syntactic preference only.\n\n### Install\n\n    npm install http-error-factories\n\n### Usage\n\nFactories are defined for each error name, using the lower camelcased name of\nthe corresponding error object. Each factory takes a single (optional) argument\nrepresenting a description of the error.\n\n    var errors = require('http-error-factories');\n\n    var error = errors.internalServer('Something went horribly wrong');\n\n    error instanceof errors.HTTPError           // true\n    error instanceof errors.InternalServerError // true\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fhttp-error-factories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjz%2Fhttp-error-factories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fhttp-error-factories/lists"}