Skip to content

Improve error message when specifying unknown data format #1312

@chaoran-chen

Description

@chaoran-chen

Currently, when calling an entpoint with an unknown data format (example), the error message is, for example:

{
    "type": "about:blank",
    "title": "Not Acceptable",
    "status": 406,
    "detail": "Acceptable representations: [text/tab-separated-values, application/json, text/csv].",
    "instance": "/open/v2/sample/aggregated"
}

It would be better to list the allowed values for the dataFormat parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions