R/ResponserHandler.R

ResponseHandler<- function(r){


    if (http_error(r)) {
        
        x<- status_code(r)
        
        message(
            case_when(
                x %% 403 == 0 ~ "Authentication failure",
                x %% 500 == 0 ~ "Unsuccessful execution",
                TRUE ~ sprintf("LendingClub API request failed")))
        }
    }
    

Try the LendingClub package in your browser

Any scripts or data that you put into this service are public.

LendingClub documentation built on May 1, 2019, 9:14 p.m.