--- title: "Throw API Exception" slug: "throw-api-exception" tags: ["exception", "API", "status code"] updated: 2022-12-08T19:18:55Z published: 2022-12-08T19:18:55Z canonical: "documentation.decisions.com/throw-api-exception" --- > ## 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 ## Overview | ## Step Details | | --- | | **Introduced in Version** | 5.0.0 | | **Last Modified in Version** | 5.0.0 | | **Location** | Flow Management > Error Handling | The **Throw API Exception** step sends an exception message and HTTP error status code. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | 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) - [Throw Exception](/throw-exception.md) - [Throw API Exception with Headers](/throw-api-exception-with-headers.md) - [Throw Business Rule Exception](/throw-business-rule-exception.md)