added status codes for pending, renamed other status codes to match the statuses in the PHP lib