Now it parses to right error representation. Also fix that right exception for error is not thrown on api call. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>