Fix support of error code acceptor states in waiters.

Fixes #320