Fixes error codes
Merge pull request #226 from eordano/fix/returnCodeGet

Fixes error codes on insight