--- title: "throw http exception()" slug: "basic-http-throw-error" updated: 2026-08-12T13:21:35Z published: 2026-08-12T13:21:35Z canonical: "docs.lobstersoftware.com/basic-http-throw-error" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # throw http exception() This function can be used to trigger an error in a Profile with an event-driven Input agent of type "HTTP" and to set the HTTP error response status code **a** and the response content **b**. > [!NOTE] > **NOTE:** > > - If the input agent is set to parallel processing, an error is also triggered, but the function has no influence on the response because the response is then sent immediately, i.e. before Phase 3 in which the function is executed. > - If a different input agent is used, only an error is triggered. ## Parameters | Parameter | Description | | --- | --- | | a | The HTTP response status code. **NOTE:** Use the three dots to select a value that is defined in the input agent. | | b | (optional) The content of the response. If nothing is specified here, the "Response on error" that is entered for code **a** in the sub-dialog "More HTTP error codes" in the input agent is used. If nothing is found there, the "Response on error" in the main dialog of the input agent is used. | A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data). Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile.