Pass along any http error from server

- add logic to check if response code is 400 or above, geterrorstrean, otherwise get inputstream
- remove catch for filenotfound since this would be taken care by the above logic
- fixed indentation (always have this problem when committing from windows)