module Lifen class AppAuthenticatedClient < Client private def handle_status!(response) super(response) case response.status when 400 raise Error, "Error 400" when 401 raise InvalidSecretTokenError when 403 raise UserAlreadyExistingError when 404 raise Error, "Error 404, Page not found" end end def bearer Lifen.configuration.application_access_token end end end