Status Codes

jaekwon edited this page Sep 13, 2010 · 3 revisions

[OpenTransact] should use existing HTTP status codes as much as possible. Here is a preliminary list:

Code HTTP meaning OpenTransact meaning
200 Success Transfer went through
400 Bad request Request is missing opentransact required fields of to and/or amount. Also if errors in any fields.
404 Not found Currency or subcurrency (Holds etc) does not exist
403 Forbidden Insufficient funds. 403 says the reason can be in the response body. JSON anyone?
410 Gone A transfer is made to an expired asset (eg a hold)

Any others? Please update and comment.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.