<https://www.ory.sh/docs/reference/api#tag/identit...
# ory-network
b
https://www.ory.sh/docs/reference/api#tag/identity/operation/createIdentity there's no documented error response for when there's a conflict with identity traits on create. Are we meant to just match the error message? (elixir formatted)
Copy code
%Ory.Model.ErrorGeneric{
  error: %Ory.Model.GenericErrorContent{
    debug: nil,
    error: nil,
    error_description: nil,
    message: "The resource could not be created due to a conflict",
    status_code: nil
  }
}
b
I can see the 409 Conflict response defined in the spec, does that not work?
b
Ahh that's a 409. I think you need to look at your elixir autogen code. It's quite bad. It's returning this as an :ok response with no status code
b
Thanks, totally fair! The generators are quite hit or miss depending on community support. Contributions and suggestions are very much welcome!
b
No worries, hard to contribute much to autogen code though 😞 We're just slowly reimplementing the endpoints we use