personium / app-uc-directory

Apache License 2.0
0 stars 2 forks source link

Should not add entry when it already exists #2

Closed dixonsiu closed 6 years ago

dixonsiu commented 6 years ago

Personium Core will return the following error when entry already exists. Therefore, no need to implement extra logic.

{
  "message": "{\"code\":\"PR409-OD-0003\",\"message\":{\"lang\":\"en\",\"value\":\"The entity already exists.\"}}",
  "code": 409,
  "name": "_p.PersoniumException"
}