Added raise_for_status function to handle http error status

when I got some http error status code from api, usually cause "json parse error" on bottom line.
so I just want to throw HttpError exception to handle that easily.