Skip to content

Improve response for site not found case #333

@BK01

Description

@BK01

Current state:
When a site is not found, users receive a 404 and an HTML response regardless of format requested.

Test case:
https://geocoder.api.gov.bc.ca/sites/nearest.json?point=-122.861715%2C49.825979&maxDistance=10

Proposed future state:
When a site not found response is given for a ‘near’ or ‘nearest’ request, a ‘No site found’ response is given in the same format as the request (json, geojson etc) with HTTP 200 status code. In some cases, such as SHP format a different approach may be required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions