(no title)
Kostarrr | 1 year ago
Total nitpick: For `CreateAuthorError::Duplicate`, I would return a 409 Conflict, not a 422 Unprocessable Entity. When I see a 422 I think utf-8 encoding error or maybe some bad json, not a duplicate key in a database.
slau|1 year ago
So it’s more “your request didn’t make logical sense” more than “your request was missing a closing bracket”. That’s just a 400.
[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422