Skip to content

Support content negotiation for error responses #508

Closed

Description

@dmitrizagidulin

Currently, node-solid-server only supports returning errors with Content-Type: text/html.
Add support for some other error content types (based on the request Accept: header, etc).

  1. Decide which error formats to support (JSON, Turtle?).
  2. For Turtle errors, pick an appropriate error ontology
  3. For JSON errors, pick appropriate format/RFC.

Activity

  1. timbl commented on Aug 18, 2017

    @timbl
    Contributor

    Well - the problem here is, how do you know separately what formats the client can handle and would like for error messages, which are different from the original data? For example, I may just want an image, any image, for this fetch, but b happy with any format for the error page, or I may do a very open accept-anything fetch of data, but still only be able to cope with an HTML error page.

  2. timbl commented on Aug 18, 2017

    @timbl
    Contributor

    If we want to send data back with the error response, then I guess we could use RDF/a

  3. added
    revisit
    on Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    revisit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions