Skip to content

Requesting binaries with invalid Accept headers should 406, not 500 #440

Open
@dmitrizagidulin

Description

@dmitrizagidulin

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions