Title: 404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility · Issue #1 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: 404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility · Issue #1 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: 404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility · Issue #1 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Problem PodOS/mashlib cannot create new resources because 404 responses don't include the headers that tell rdflib what editing protocols are supported. When rdflib tries to create a new resource, it first does a GET to check if it exist...
Open Graph Description: Problem PodOS/mashlib cannot create new resources because 404 responses don't include the headers that tell rdflib what editing protocols are supported. When rdflib tries to create a new resource, ...
X Description: Problem PodOS/mashlib cannot create new resources because 404 responses don't include the headers that tell rdflib what editing protocols are supported. When rdflib tries to create a new resour...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/1
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility","articleBody":"## Problem\n\nPodOS/mashlib cannot create new resources because 404 responses don't include the headers that tell rdflib what editing protocols are supported.\n\nWhen rdflib tries to create a new resource, it first does a GET to check if it exists. If it gets a 404 without `Accept-Patch` and `Accept-Put` headers, it doesn't know how to create the resource.\n\n**Error from PodOS:**\n> Can't create new resources with PodOS. You may need to add accept-patch header to 404 resources, so that rdflib can figure out how to create it.\n> Exception in update: Error: Update: Loaded http://localhost:3210/something-new but still can't figure out what editing protocol it supports.\n\n## Solution\n\nAdd `Accept-Patch`, `Accept-Put`, and `Allow` headers to all 404 responses so clients know what methods are available for creating resources.\n\n**Headers added to 404 responses:**\n- `Accept-Patch: text/n3, application/sparql-update`\n- `Accept-Put: application/ld+json, text/turtle, */*`\n- `Allow: GET, HEAD, PUT, PATCH, OPTIONS`\n- `Link: \u003cresource.acl>; rel=\"acl\"`\n- CORS headers\n\n## Affected handlers\n\n- `handleGet` - GET requests for non-existent resources\n- `handleHead` - HEAD requests for non-existent resources\n- `handleDelete` - DELETE requests for non-existent resources\n- `handlePatch` - PATCH requests for non-existent resources","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2025-12-27T13:58:47Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/1"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cc2a1cbf-3c36-4922-dc01-33fd583c5235 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5E0:B4652:10806B0:14F3F18:6B0389EF |
| html-safe-nonce | c785b267f81bbff84db2dca7669cc3e019962df9af4d02c2fded2695412fdf91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUUwOkI0NjUyOjEwODA2QjA6MTRGM0YxODo2QjAzODlFRiIsInZpc2l0b3JfaWQiOiI3NzI4OTY5NzE3ODE1NDAzMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fb7eddc61ab687d15ce912e9d5df5b6b5831a8e748d040e663914838ac18bace |
| hovercard-subject-tag | issue:3764791437 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e55718950413fa9245aa8d1df97ddd752f9658a0bedce443f4c5000216299267/JavaScriptSolidServer/JavaScriptSolidServer/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e55718950413fa9245aa8d1df97ddd752f9658a0bedce443f4c5000216299267/JavaScriptSolidServer/JavaScriptSolidServer/issues/1 |
| og:image:alt | Problem PodOS/mashlib cannot create new resources because 404 responses don't include the headers that tell rdflib what editing protocols are supported. When rdflib tries to create a new resource, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width