Hi,
We are migrating from API v1 to v2 and are struggling with error handling. On v1 we had very specific codes and do not have them on v2.
As an example, if we try to publish a Tweet, for a duplicate status we had error code 187 and on the v2 we have

{"detail":"You are not allowed to create a Tweet with duplicate content.","type":"about:blank","title":"Forbidden","status":403}

If we want to do some business logic to treat this as a success (because the Tweet has already been posted) we would have to rely on the detail string which seems fragile as it might change.

Any plan on adding error codes?

2 Likes

I was looking for the error codes page too and can’t find it.