Skip to content

Problem details sample returns Division_by_zero when it should return 404 #37

@Rick-Anderson

Description

@Rick-Anderson

Problem details code returns

{"type":"https://wikipedia.org/wiki/Division_by_zero",
"title":"Wrong Input",
"status":404,
"detail":"Divison by zero is not defined."}

When there is no endpoint rather than just 404.

@sammychinedu2ky fixed that by adding HasPath, but that's an error prone solution.

@brunolins16 can you suggest a better mechanism to detect when there's no matching endpoint?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions