Loc*_*Loc 7 query-parameters http-status http-status-code-404 http-status-code-400
这是我的请求网址:
http://server.com/app/user/getuser/?userId=9999
注意,这userId是查询参数。未嵌入的路径参数。
我了解如果请求URL为:http : //server.com/app/user/getuser/9999并且ID 9999在数据库中不存在,则应使用404。
但是userId查询参数应使用哪种HTTP状态?现在我返回的是400,而不是404。