AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
485 stars 122 forks source link

Replace 400 Bad Request response codes with 422 Unprocessable Entity where appropriate #143

Closed namedgraph closed 1 year ago

namedgraph commented 1 year ago

Constraint violation should probably return 422 Unprocessable Entity since the RDF syntax is valid but the message cannot be processed due to semantic errors.

namedgraph commented 1 year ago

Fixed in f27e5b1cd7ab1648c44c3b46df645ef3617d9c48.

Some 400 Bad Request responses also replaced with 405 Method Not Allowed, e.g. when attempting to delete root/owner/secretary documents.