How to check webpage on the HTTP status code?

I need to check a list of webpages as part of a process. Would it be possible to check based webpage on the HTTP status code?

Hi @linny, try this code:

@CustomScriptAction(
    input = ['url'],
    output = 'code'
)
 
def customScript() {
    def status_code = url.toURL().openConnection().responseCode
    code = RNumber.of(status_code)
    }