# Viewing code and executing the Route

## Procedure

1. Click the Code tab at the bottom of the design workspace to check the generated code.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_cerrorhandler_6.png)

   As shown above, the route starts from the endpoint Jetty\_Server and throws the exception of server side error via cProcessor\_1.
2. Press F6 to execute the Route.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_cerrorhandler_7.png)

   The Jetty server has started.
3. Launch an Internet browser and enter http://localhost:8889/service (the Jetty server URI configured above) in the address bar to access the server.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_cerrorhandler_8.png)

   As shown above, the request failed due to the server error.
4. Go to Talend Studio and check the results in the Run tab.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_cerrorhandler_9.png)

   As shown above, cErrorHandler has logged the exception at the level of *ERROR*.