Check HTTP status codes in the GitHub service for errors.

Now that we have an `http_code` field in HostingServiceError, we can
check it instead of the error message text. This should help prevent
problems in the future if strings ever change.

Reviewed at https://reviews.reviewboard.org/r/5921/