所以我正在开发一个Rest API
当POST创建资源并且缺少必填字段时我应该返回什么?
400 - 错误请求
要么
412 - 前提条件失败
为什么?
api rest http http-status-code-400 http-status-code-412
api ×1
http ×1
http-status-code-400 ×1
http-status-code-412 ×1
rest ×1