getStatusCode

scrapeableFile.getStatusCode() (professional and enterprise editions only)
Description
If this method is invoked after the HTTP request has been made for a scrapeable file, it will return the HTTP status code sent by the server (e.g., 200, 403, 404, 500).
Example
// Check for a 404 response (file not found).
if( scrapeableFile.getStatusCode()==404 )
{
 session.log( "Warning! The server returned a 404 response." );
}