Interesting question in some other chat: If I hav...
# random
o
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
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
I would go with
418
instead.