Support new API processing states

Supports the new API processing states introduced in
commit 0a4d847d586c8ee34c85b0dc6a953af575e9dd31 (api).

Fixes #7