# Errors 1099Policy uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the `2xx` range indicate success. Codes in the `4xx` range indicate an error due to the the information provided (e.g., a required parameter was omitted, a create policy request failed, etc.). Codes in the 5xx range indicate an error with 1099Policy's servers (these are rare). Some `4xx` errors that could be handled programmatically (e.g., contractor ineligible for coverage) include an error code that briefly explains the error reported. # Handling Errors Our API libraries raise exceptions for many reasons, such as a failed create policy request, invalid parameters, authentication errors, and network unavailability. We recommend writing code that gracefully handles all possible API exceptions. ## Example ```basic 200 (OK) Everything worked as expected. 400 (Bad Request) Check for a missing required parameter. 401 (Unauthorized) No valid API key provided. 403 (Forbidden) Confirm API key has permissions to make request. 404 (Not Found) The requested resource doesn't exist. 429 (Too Many Requests) Too many requests to the API too quickly. 500 (Server Error) Something went wrong on 1099Policy's end. ```