Skip to content

consider HTTP 400 over 404 for pathVar parse failures #55

Open
@aryairani

Description

@aryairani

Given: https://gist.github.com/refried/0eb77004d2f41c470e71

curl -v localhost:8081/puppy/bySSN/foo returns 404 with the body /puppy/bySSN/foo not found, which made me think something was wrong with my route, when it was really something wrong with my request (parse failure).

I think there's an argument to be made for 404, or a different code, or a different body, or maybe the answer is documentation on pathVar. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions