Return error code if report contains error
Detect error reports `onNext`
Merge pull request #9 from OliverJAsh/oja-report-error-code-2

Return error code if report contains error