Added method for when http error
Replaced tabs by spaces
Merge pull request #25 from beaubbe/integration

Added method for when http error