---
sourceDocument: Brazil Impact
sourceDocumentLink: https://www.servicenow.com/docs/r/impact

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Impact

ft:clusterId :

    - ipact

bundleId :

    - ipact


---

# Scan Engine API error codes

# Scan Engine API error codes {#ariaid-title1}

Release version: Brazil  
Updated November 19, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Scan Engine API error codes

This document details the error codes returned by the Scan Engine API in ServiceNow, organized by HTTP status code.
It provides clear descriptions and recommended actions for each error to help you diagnose and resolve issues when interacting with the Scan Engine API endpoints.
Show full answer Show less  

## 400 Bad Request errors

These errors indicate validation problems with your API request. Common causes include invalid or missing identifiers (such as scan definitions, application sysids, or update set sysids), incorrect field values, unsupported scan modes, malformed XML content, or missing required fields. To resolve, carefully review the error message details, verify that all identifiers and values are correct and conform to expected formats, and ensure required fields are included before retrying the request.

## 401 Unauthorized errors

Authentication failures occur when credentials are invalid, expired, or missing. Refresh or re-authenticate your session token or OAuth credentials and retry immediately. Logging these errors is recommended for audit purposes.

## 403 Forbidden errors

Authorization errors result from insufficient user permissions. Specifically, if your user account lacks the **snse.scanengineuser** role, access will be denied. Contact your ServiceNow administrator to request the appropriate role. Do not retry automatically until authorization is granted.

## 404 Not Found errors

These errors indicate requested scan results or resources do not exist or have been purged. This includes missing application scans, instance scans, update set scans, or scan results identified by sysid or scan number. Verify that identifiers are correct, the scan has completed, and the data has not been deleted. For cancelling scans, ensure an active scan is running and provide a valid identifier.

## 409 Conflict errors

Conflict errors occur due to the current state of a scan preventing the requested action. Examples include attempting to cancel an already cancelled or completed scan, or starting a scan while another is running on the same target. For concurrent scans, implement exponential backoff starting with a 30-second wait before retrying or cancel the existing scan first.

## 413 Payload Too Large errors

This error arises when the request body exceeds the 64KB limit. To fix this, reduce the request size by sending smaller batches or fewer records in your API calls.

## Key outcomes for ServiceNow customers

* Accurate identification and resolution of Scan Engine API errors to maintain smooth scanning operations.
* Improved API request construction by understanding required fields, valid identifiers, and supported scan modes.
* Effective handling of authentication and authorization issues by managing credentials and user roles.
* Strategies to handle conflicts and rate limits with retries and exponential backoff.
* Optimization of request payload sizes to avoid exceeding limits and causing errors.  
Error codes returned by the Scan Engine API, organized by HTTP status code. Each section includes proposed solutions and handling strategies.

## 400 Bad Request errors {#api-error-codes-grouped__section_400_errors}

Validation errors indicate a problem with your request. Review the error message and correct the field or value before retrying.
{#api-error-codes-grouped__table_400_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| DEFINITION_NOT_FOUND | GET /findings | The scan definition specified in your query does not exist. Verify the definition sys_id or number. |
| INVALID_APPLICATION | POST /scan (application_scan mode) | The supplied application sys_id does not exist or is invalid. Verify the sys_id matches a valid application record. |
| INVALID_FIELD_VALUE | POST /scan, POST /cancel, GET /findings, GET /resolved_findings | A field value does not match the expected format or type. Check the error detail for which field needs correction. |
| INVALID_SCAN_MODE | POST /scan | The `scan_mode` value is not recognized. Verify it matches one of the supported modes: `instance_scan`, `update_set`, `application_scan`, or `content`. |
| INVALID_UPDATE_SET | POST /scan (update_set mode) | The supplied update set sys_id does not exist or is invalid. Verify the sys_id matches a valid application record. |
| INVALID_XML_CONTENT | POST /scan (content mode) | The XML content is not well-formed or is missing the `<record_update>` root element. Validate the XML structure. |
| MISSING_REQUIRED_FIELD | All endpoints | A required field is missing from your request. Check the error message to identify which field is required. |
[Table 1. 400 Bad Request error codes]

{#api-error-codes-grouped__table_400_errors}

## 401 Unauthorized errors {#api-error-codes-grouped__section_401_errors}

Authentication errors occur when credentials are invalid. Refresh your credentials and retry immediately. Log the error for audit purposes.
{#api-error-codes-grouped__table_401_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| NOT_AUTHENTICATED | All endpoints | Your session token or OAuth credentials are invalid, expired, or missing. Re-authenticate and retry with valid credentials. |
[Table 2. 401 Unauthorized error codes]

{#api-error-codes-grouped__table_401_errors}

## 403 Forbidden errors {#api-error-codes-grouped__api-error-codes-grouped}

Authorization errors are configuration issues. Contact your administrator to grant the required role. don't retry automatically.
{#api-error-codes-grouped__table_403_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| NOT_AUTHORIZED | All endpoints | Your user account does not have the `sn_se.scan_engine_user` role. Contact your administrator to request access. |
[Table 3. 403 Forbidden error codes]

{#api-error-codes-grouped__table_403_errors}

## 404 Not Found errors {#api-error-codes-grouped__section_404_errors}

Resource not found errors occur when the requested scan or resource does not exist. Verify identifiers are correct and the resource has not been purged.
{#api-error-codes-grouped__table_404_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| APPLICATION_SCAN_NOT_FOUND | GET /findings | No findings exist for the specified application scan. The scan may not have completed or the application ID may be incorrect. |
| INSTANCE_SCAN_NOT_FOUND | GET /findings | No findings exist for the specified instance scan. The scan may not have completed or the scan result may have been purged. |
| NO_ACTIVE_SCAN | POST /cancel | No active scan is running and no identifier was provided. Supply either `scan_sys_id` or `scan_number`, or verify a scan is currently active. |
| SCAN_NOT_FOUND | GET /scan_status, GET /findings, GET /resolved_findings, POST /cancel | The scan result ID provided does not exist or has been purged. Verify the scan_result_sys_id or scan_number is correct. |
| UPDATE_SET_SCAN_NOT_FOUND | GET /findings | No findings exist for the specified update set scan. The scan may not have completed or the update set ID may be incorrect. |
[Table 4. 404 Not Found error codes]

{#api-error-codes-grouped__table_404_errors}

## 409 Conflict errors {#api-error-codes-grouped__section_409_errors}

Conflict errors occur when a request can't be completed due to the current state. For rate limiting (CONCURRENT_SCAN_RUNNING), implement exponential backoff starting with a 30-second wait, then increase on subsequent retries.
{#api-error-codes-grouped__table_409_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| ALREADY_CANCELLED | POST /cancel | The scan is already in a Cancelled state. No further cancellation is needed or possible. |
| CONCURRENT_SCAN_RUNNING | POST /scan | Another scan is already running for this target. Wait at least 30 seconds and retry, or cancel the existing scan first. |
| SCAN_COMPLETE | POST /cancel | The scan has already completed and cannot be cancelled. Cancellation is only available for in-progress or queued scans. |
[Table 5. 409 Conflict error codes]

{#api-error-codes-grouped__table_409_errors}

## 413 Payload Too Large errors {#api-error-codes-grouped__section_413_errors}

Payload size errors occur when the request body exceeds limits. Reduce the request size by using smaller batches or fewer records.
{#api-error-codes-grouped__table_413_errors__entry__3}

| Error Code | Applies to endpoints | Description |
|-|-|-|
| PAYLOAD_TOO_LARGE | POST /scan, POST /cancel | Request body exceeds 64KB. Reduce the request size by using smaller batches or fewer records. |
[Table 6. 413 Payload Too Large error codes]

{#api-error-codes-grouped__table_413_errors}

