Skip to content

Misleading HTTP Status Codes at /sparql when wrong/missing ?model and missing ?query #36

@keiligch

Description

@keiligch

When wrong requests are sent to the /sparql endpoint, an inappropriate status code and a misleading error message are returned.

A GET request to /sparql without a ?model parameter or with a provided ?model parameter that does not correspond to a model in the graph store results in the message 404 "The Requested URL /sparql was not found on this server", even though the endpoint exists. When the ?query parameter is missing, it's 404 too. Another code (like the 500 for the invalid query format exception) and/or another error message would indicate that there is no connection problem, but rather that just the model was not found.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions