2 Error Codes for same error in API

I didn’t see an API category so I guess I’ll post this here.

There are two error codes which apparently mean the same thing, so when programming how do we know the true conditions for each trigger?

1024 and 1061 seem to refer to the same error

screenshot from docs