{"action":"opened","issue":{"url":"https://api.github.com/repos/stellar/horizon/issues/253","repository_url":"https://api.github.com/repos/stellar/horizon","labels_url":"https://api.github.com/repos/stellar/horizon/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/stellar/horizon/issues/253/comments","events_url":"https://api.github.com/repos/stellar/horizon/issues/253/events","html_url":"https://github.com/stellar/horizon/issues/253","id":140941392,"number":253,"title":"Result codes should be the same everywhere","user":{"login":"bartekn","id":464938,"avatar_url":"https://avatars.githubusercontent.com/u/464938?v=3","gravatar_id":"","url":"https://api.github.com/users/bartekn","html_url":"https://github.com/bartekn","followers_url":"https://api.github.com/users/bartekn/followers","following_url":"https://api.github.com/users/bartekn/following{/other_user}","gists_url":"https://api.github.com/users/bartekn/gists{/gist_id}","starred_url":"https://api.github.com/users/bartekn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartekn/subscriptions","organizations_url":"https://api.github.com/users/bartekn/orgs","repos_url":"https://api.github.com/users/bartekn/repos","events_url":"https://api.github.com/users/bartekn/events{/privacy}","received_events_url":"https://api.github.com/users/bartekn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T11:16:03Z","updated_at":"2016-03-15T11:16:03Z","closed_at":null,"body":"Result codes returned by Horizon are different that those in XDR and our docs. For example, trying to send Payment to the account that doesn't exist results in `op_no_destination` code but it's `PAYMENT_NO_DESTINATION` in [XDR](https://github.com/stellar/stellar-core/blob/master/src/xdr/Stellar-transaction.x#L384) and in [devportal](https://www.stellar.org/developers/learn/concepts/list-of-operations.html#payment). To handle all possible cases properly a developer needs to check the source of Horizon to figure out what are the error codes."}}