SeafConnection: Consistent handling of HttpRequestException

More improvements to checking of http response status, and handling of HttpRequestException