{"id":19179484,"url":"https://github.com/hypermedia-app/express-rdf-problem-details","last_synced_at":"2026-06-13T01:32:55.598Z","repository":{"id":36975068,"uuid":"423188129","full_name":"hypermedia-app/express-rdf-problem-details","owner":"hypermedia-app","description":"hydra-box error handler which returns HTTP Problem Details with JSON-LD context link","archived":false,"fork":false,"pushed_at":"2023-02-28T05:03:52.000Z","size":672,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T01:44:07.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hypermedia-app.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-10-31T15:38:29.000Z","updated_at":"2021-12-31T17:47:56.000Z","dependencies_parsed_at":"2024-11-09T10:43:27.641Z","dependency_job_id":"73998679-2290-4b12-b3e9-50002e5ef58b","html_url":"https://github.com/hypermedia-app/express-rdf-problem-details","commit_stats":{"total_commits":43,"total_committers":3,"mean_commits":"14.333333333333334","dds":0.2325581395348837,"last_synced_commit":"7bd086c1c5e233c0f596e477d87a3bbc41902257"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"tpluscode/ts-template","purl":"pkg:github/hypermedia-app/express-rdf-problem-details","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2Fexpress-rdf-problem-details","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2Fexpress-rdf-problem-details/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2Fexpress-rdf-problem-details/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2Fexpress-rdf-problem-details/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypermedia-app","download_url":"https://codeload.github.com/hypermedia-app/express-rdf-problem-details/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2Fexpress-rdf-problem-details/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T10:43:19.104Z","updated_at":"2026-06-13T01:32:55.569Z","avatar_url":"https://github.com/hypermedia-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-rdf-problem-details\n\nThis package wraps [express-http-problem-details](https://github.com/PDMLab/express-http-problem-details) so that RDF/Linked Data express applications will return Problem documents ([RFC7807](https://tools.ietf.org/html/rfc7807)) as valid JSON-LD.\n\nThis is done simply by adding a `Link` header pointing to a JSON-LD `@context`. By default, it's the [context provided by Hydra Community Group](http://www.hydra-cg.com/spec/latest/core/#example-31-rfc-7807-compatible-error-description)\n\n## Usage\n\n```typescript\nimport express from 'express'\nimport * as error from 'express-rdf-problem-details'\nimport { NotFoundMapper } from './error-mappers'\n\nconst app = express()\n\n// All params optional\nexpress.use(error.handler({\n  // change the @context URL\n  context: 'http://example.com/error.jsonld',\n  // additional mappers to customize error documents\n  mappers: [new NotFoundMapper()] \n}))\n```\n\nImplementing mappers is explained in [PDMLab/express-http-problem-details](https://github.com/PDMLab/express-http-problem-details#example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermedia-app%2Fexpress-rdf-problem-details","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypermedia-app%2Fexpress-rdf-problem-details","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermedia-app%2Fexpress-rdf-problem-details/lists"}