Need a filter which can show non responsive url with an error code
#* Return LDA of all sites
#* @param a Enter your Website
#* @param b:[chr] Enter URLs
#* @param v The focused keyword
#* pr_set_error(pr, fun)
function(req, res){
if (req$b== FALSE){
res$status <- 500 # Unauthorized
return(list(error="Unresponsive URL"))
} else {
plumber::forward()
}
}
#* @post /LDA
function(a,b,v) {
#calculation}
please help me!
I'm wildly guessing here