Which HTTP response code for “This email is already registered”?

前端 未结 6 1191
逝去的感伤
逝去的感伤 2020-12-23 15:57

I\'m creating a RESTful API for creating users that enforces unique email addresses:

Successful POST /users: HTTP 201 Created

If I

6条回答
  •  囚心锁ツ
    2020-12-23 16:28

    I often use the (WebDAV extension) HTTP 422 Unprocessable Entity:

    The request was well-formed but was unable to be followed due to semantic errors

提交回复
热议问题