-
2 votesanswersviews
POST时数据不正确的HTTP状态(使用不存在的资源的id)
当我执行POST请求以创建新用户时, correct HTTP status to return 会是什么,但其中一个参数不正确 - 我在数据库中不存在包含用户数据的公司ID . POST数据:{用户名:'newuser',年龄:99, company_id: 34 } the company with id 34 does not exist in the database. 我在想是否可能是这...