comment typo
Add APIError and prepare for `success` prop deprecation

issue #819
Call APIError superclass init