--- title: "Throw API Exception with Headers" slug: "throw-api-exception-with-headers" tags: ["exception", "API"] updated: 2022-10-24T14:14:51Z published: 2022-10-24T14:14:51Z canonical: "documentation.decisions.com/throw-api-exception-with-headers" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Throw API Exception with Headers ## Overview | ## Step Details | | --- | | **Introduced in Version** | 7.9.0 | | **Last Modified in Version** | 7.9.0 | | **Location** | Flow Management > Error Handling | The **Throw API Exception with Headers** step sends custom headers along with an exception message and HTTP error status code when Flows are called as REST services. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Headers | Custom HTTPS headers that can be returned | List of HttpRequestHeaderObject | | Message | Returned response message when the exception is thrown | String | | Status Code | HTTP response code | Int32 | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1651244803181.png) --- Related Information Forum Posts: [Testing Catch Exceptions](https://support.decisions.com/forum/topic1933-testing-catch-exceptions.aspx) [How Can I Get Better Errors From A Flow API?](https://support.decisions.com/forum/topic2798-how-can-i-get-better-errors-from-a-flow-api.aspx) ## Related - [Catch Exception Step](/catch-exception-step.md)