"server is buggy, returned -1", -1 => "anything negative is a bug", 0 => "not an error (never used)", 1 => "failed for unknown internal reason", 2 => "some internal configuration failure?", 3 => "the backend is temporarily down, try again later", 4 => "security check failed", // raw XML errors 10 => "not well formed XML packet", 11 => "no tags at all", 12 => "this packet failed to recover; it is not the named tag", // errors above here may not have any RequestId returned in the ErrorResponse // XML-X errors 20 => "this is not a request that is handled", 21 => "too many tags included", 22 => "an obligatory tag is missing", 23 => "the content of a tag does not parse", 24 => "unknown tag in request", 25 => "this version is unsupported", 26 => "Not a number", 27 => "Not a time", 33 => "an attribute was included twice", 34 => "this attribute is unrecognised", 35 => "attribute has bad contents", 40 => "a feature requested is unsupported on this server", 61 => "the server is not currently serving requests", // user-defined errors, 100-199, unallocated, not defineable in standard // these can only be used in private implementations, and for experiments // reserved errors, 200-299, unallocated // application errors, above XML-X, above 300 // User errors 300-399 300 => "this user is unknown to the server", 301 => "the user identifier is not parsable as a user", 303 => "user does not have the requested rights", 304 => "password failed", 305 => "the user you are trying to pay is unknown", 310 => "the user is frozen / under administrative control", 311 => "the user has a block on the requested action", 312 => "the password did not meet the quality standard", 313 => "user is blocked pending user input (missing info)", // Account errors 400-499 400 => "the account is unknown", 401 => "the identifier is not an account identifier", 403 => "account does not have the requested rights", // 404 405 => "the account you are trying to pay is unknown", 410 => "the account is frozen", 411 => "the account has a block on the requested action", 413 => "account is blocked pending user input (missing info)", // Currency (sub-account) errors 500-599 500 => "the currency is unknown", 501 => "currency identifier field is wrong", 510 => "the currency is frozen", 511 => "the currency has a block on the requested action", // Transaction errors 600-699 600 => "source account does not have enough funds", 601 => "that transaction is already done (by TID)", 602 => "that TID is used in a different transaction", 603 => "server rejected for non-xml-x formatting issue", 630 => "the type requested is unknown or unsupported", 631 => "the text could not be recognised as a token", 632 => "the recovered token was rejected for value", 633 => "already settled to caller, idempotent reject", 634 => "the token is targetted (to someone else)", // User Management errors 700-799 700 => "User Id already in use", 701 => "this account already exists", 702 => "The User Id is in the wrong format", 703 => "The Account Id is in the wrong format", 710 => "Profile has bad field", 711 => "AuthMethod has bad field", ); function getErrorString($e) { global $errors; return $errors[$e]; } ?>