Handle JSON error in the body even if status code is 2xx

I'm not sure about other drivers, but `chromedriver` surely reports 200 when the command fails. That's why modified `handleHTTPErr` to handle the error info in the body as well. Not sure if it fits the big picture, but it's the easy way.