Improved ApiError. Testing in travis with encrypted VCRs.