Skip to content

More specific error messages when the API returns no data #2

Open
@corviday

Description

@corviday

@jameshiebert suggests returning a 404 instead of a blank list when a request is made to the regions API for which there are no qualifying regions, and perhaps text indicating why there are no qualifying regions (such as being outside the domain).

Similarly, there might be ways to improve the specificity of the population API too. Sometimes there just won't be a salmon population in the area, but detecting whether the area is outside BC is feasible.

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