The “createFavorite” method returns:

404:The URI requested is invalid or the resource requested, such as a user, does not exists. Also returned when the requested format is not supported by the requested method.
message - No status found with that ID.
code - 144

Does anyone knows why? and how to solve it? I am using the id from “getId” from a status.

Are you using API v2 or v1.1? Is the Tweet accessible? Does your app have read/write access?

Are you using API v2 or v1.1?
v1.1 / twitter4j

Is the Tweet accessible?
What do you mean exactly by accesible? All tweets that I tested return the same result

Does your app have read/write access?
Yes. I am doing other things.

Are you able to like the Tweet via any other route eg on the web with the same signed in user, or using twurl? I assume the Tweet is not from a protected user account.