web1 component connectivity

the official web1 component doesn’t have argument to deal with error occurred preferences

web1.erroroccured

may be this could help.
image

or you can use web1 got text block with response code

1xx: Informational Responses

  • 100 Continue: The initial part of a request has been received and has not yet been rejected by the server.
  • 101 Switching Protocols: The server is switching protocols as requested by the client.

2xx: Successful Responses

  • 200 OK: The request has succeeded. The meaning of the success depends on the HTTP method used.
  • 201 Created: The request has been fulfilled and has resulted in the creation of a new resource.
  • 204 No Content: The server successfully processed the request, but is not returning any content.

3xx: Redirection Messages

  • 301 Moved Permanently: The requested resource has been assigned a new permanent URI.
  • 302 Found: The requested resource resides temporarily under a different URI.
  • 304 Not Modified: Indicates that the resource has not been modified since the last request.

4xx: Client Error Responses

  • 400 Bad Request: The server cannot or will not process the request due to a client error (e.g., malformed request syntax).
  • 401 Unauthorized: Authentication is required and has failed or has not yet been provided.
  • 403 Forbidden: The server understood the request, but refuses to authorize it.
  • 404 Not Found: The requested resource could not be found on the server.
  • 408 Request Timeout: The server timed out waiting for the request.

5xx: Server Error Responses

  • 500 Internal Server Error: A generic error message indicating that the server encountered an unexpected condition.
  • 502 Bad Gateway: The server was acting as a gateway or proxy and received an invalid response from the upstream server.
  • 503 Service Unavailable: The server is currently unable to handle the request due to temporary overloading or maintenance of the server.
  • 504 Gateway Timeout: The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
1 Like

you can get every error from Screen blocks section…if you check there is an event block named when Screen1 Error occured with 4 parameters

1-component
2-function Name
3-error message
4-error number

Check the response code in the Web.GotText event
Taifun