Added API errors method.
Merge branch 'release/1.21'