Skip to content

[Agency] Avoid custom http status code #127

@HenriJ

Description

@HenriJ

The current version of the specification (https://github.com/CityOfLosAngeles/mobility-data-specification/blob/e2faabf5a7e59f4ec4422a1e0c8c4e66361547cc/agency/README.md) is not very clear about what the structure of the response body should be in case of an error.
It looks like the "message" enum are http status code ? If it is the case, using custom http status code should be avoided (especially using 3xx codes for client errors)

2 examples of good responses body in case of error:

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgencySpecific to the Agency APIduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions