def on_complete(response)
      return if response[:body].nil?

      case response[:body][:status].to_i
      when 400
        raise Readmill::BadRequest, error_message(response)
      when 401
        raise Readmill::Unauthorized, error_message(response)
      when 403
        raise Readmill::Forbidden, error_message(response)
      when 404
        raise Readmill::NotFound, error_message(response)
      when 500
        raise Readmill::InternalServerError, error_message(response)
      when 504
        raise Readmill::GatewayTimeout, error_message(response)
      end
    end
def on_complete(response)
      return if response[:body].nil?

      case response[:body][:status].to_i
      when 400
        raise Readmill::BadRequest, error_message(response)
      when 401
        raise Readmill::Unauthorized, error_message(response)
      when 403
        raise Readmill::Forbidden, error_message(response)
      when 404
        raise Readmill::NotFound, error_message(response)
      when 500
        raise Readmill::InternalServerError, error_message(response)
      when 504
        raise Readmill::GatewayTimeout, error_message(response)
      end
    end
Internal: Hook into the complete callback for the client. When the result
 comes back, if it is a status code that we want to raise an error for, we
 will do that.

 Returns nothing.