add http code to error callback
move api limit behind conditional log
make code style match
Merge branch 'Datahero-master'
1.4.6