{"id":19086798,"url":"https://github.com/jangbl/express-error-handling","last_synced_at":"2025-07-22T10:40:07.219Z","repository":{"id":37034272,"uuid":"270253129","full_name":"jangbl/express-error-handling","owner":"jangbl","description":"demonstrates how to do error handling in express","archived":false,"fork":false,"pushed_at":"2023-05-13T10:56:15.000Z","size":294,"stargazers_count":30,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T00:03:34.718Z","etag":null,"topics":["api-error","error","error-handler","error-handling","express","express-js","expressjs","javascript","node"],"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/jangbl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-07T09:14:50.000Z","updated_at":"2023-06-20T22:46:51.000Z","dependencies_parsed_at":"2024-10-03T21:37:59.206Z","dependency_job_id":"db68cb35-5141-4ef8-b412-bab5de7ab90a","html_url":"https://github.com/jangbl/express-error-handling","commit_stats":null,"previous_names":["jangbl/express-error-handling","productioncoder/express-error-handling"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jangbl/express-error-handling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangbl%2Fexpress-error-handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangbl%2Fexpress-error-handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangbl%2Fexpress-error-handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangbl%2Fexpress-error-handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jangbl","download_url":"https://codeload.github.com/jangbl/express-error-handling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangbl%2Fexpress-error-handling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234937,"owners_count":23434916,"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":["api-error","error","error-handler","error-handling","express","express-js","expressjs","javascript","node"],"created_at":"2024-11-09T03:00:25.415Z","updated_at":"2025-07-03T00:04:55.318Z","avatar_url":"https://github.com/jangbl.png","language":"JavaScript","readme":"# Error Handling in express\n\nThis repository contains sample code on how to do error handling with the Node.js [express](https://expressjs.com/) framework.\n\n\u003ch3 align=\"center\"\u003ePlease help this repo with a ⭐️ if you find it useful! 😁\u003c/h3\u003e\n\nThis repository is part of the [Error Handling in express](https://youtu.be/DyqVqaf1KnA) tutorial provided by [productioncoder.com](https://productioncoder.com/).\n\n[![Error Handling in express](images/error-handling-in-express.png)](https://youtu.be/DyqVqaf1KnA)\n\nFor updates, please reach out to [@_jgoebel](https://twitter.com/_jgoebel) on Twitter.\n\n## Session implementation with express.js and express-session\n\nThis repository illustrates how to handle expected errors in a DRY way in express and how to not expose any internal structure in case of unexpected errors.\n\n## Running this project\n\nRun\n\n```\nnpm install\n```\n\nto install the project's dependencies.\n\nExecute the `dev` script to start up your server.\n\n```\nnpm run dev\n```\n\n## API\n\n### POST /tweet\n\nExpected payload\n\n```\n{\n    \"msg\": \"my tweet message\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjangbl%2Fexpress-error-handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjangbl%2Fexpress-error-handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjangbl%2Fexpress-error-handling/lists"}