Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Requesting binaries with invalid Accept headers should 406, not 500

Open
#440 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
api, backend

Research direction

Reproduce the request against a non-RDF binary such as a PDF using the Accept header shown in the issue, then trace the server's content-negotiation and conversion path. Done means an unsupported conversion returns HTTP 406 Not Acceptable instead of HTTP 500.

Written by the indexing model from the issue text.

Description

cannot-reproduce

Reported by @timbl:

If you request a non-rdf resource (say a PDF file) with an accept header like Accept:image/*;q=0.9, application/rdf+xml, application/xhtml+xml, text/xml;q=0.2, application/xml;q=0.2, text/html;q=0.3, text/plain;q=0.1, text/n3;q=1.0, application/x-turtle;q=1, text/turtle;q=1, the server will try to convert it from PDF to RDF, and fail with a 500 error.
Should instead return a 406 Unacceptable.

Dominant language
JavaScript
Stars
1.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nodeSolidServer/node-solid-server

All issues in nodeSolidServer/node-solid-server

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.