scim2-models cannot implement the logic to raise uniqueness errors, since checking for uniqueness for a field implies accessing a database for similar values.
The documentation should provide examples on how a server can return uniqueness errors, possibly with a famous framework such as sqlalchemy