       @buildClient(user, repo)
         .get() (error, response, body) =>
           throw error if error
+          throw response if response.statusCode < 200 or response.statusCode >= 300
           @robot.logger.info util.inspect(body)
 
           reply = switch


    output.join("\n")

module.exports = HookManager

          @message.reply reply

    catch e
      @handleError(e, "listing the GitHub event hooks on #{user}/#{repo}")

  # Private: Builds the URL to use for querying the web hook API.
  #
