Join Slack
Powered by
Interesting question in some other chat: If I hav...
# random
o
orangy
08/13/2017, 2:19 PM
Interesting question in some other chat: If I have
/users/{id}
as specified resource access URL, and then
{id}
should be an integer, and then client requests
/users/bad
, should server respond with 404 or 400?
d
dudleyf
08/13/2017, 2:39 PM
404. The URL is part of the HTTP contract which doesn't specify types, so that's a valid URL pointing to a nonexistent resource.
👍 4
m
mg6maciej
08/14/2017, 3:06 PM
I would go with
418
instead.
Open in Slack
Previous
Next