What do the various error messages mean in MetaDefender Core Rest API?

This article applies to all MetaDefender Core V4 and V5 releases deployed on Windows or Linux systems.

For users interacting with MetaDefender Core via REST API, it is essential that you familiarize yourself with the meaning of the various coded responses and error messages that the Core might return during the course of your system administration and daily file processing flow.

The tables below cover possible responses to all aspects of the REST interaction process, including:

  • authorization
  • analysis
  • batch processing
  • administration
  • configuration
  • YARA
  • engines
  • stats.

It is important to note that, while messages may often feature the same codes, their meanings are usually dependent on the nature of your API request, as illustrated in the following tables.

Auth

API RequestAPI ResponseMeaning
POST/login🟩 200OK
πŸŸ₯ 404Invalid credentials
πŸŸ₯ 500Unexpected event on server
POST/logout🟩 200OK
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information
πŸŸ₯ 500Unexpected event on server
POST/user/changepassword🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server

Analysis

API RequestAPI ResponseMeaning
POST/file🟩 200Successful file submission
πŸŸ₯ 400Invalid callback URL and/or API key
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 411Content-length header is missing from the request
πŸŸ₯ 422Body input is empty
πŸŸ₯ 500Unexpected event on server
πŸŸ₯ 503Server is too busy, scan queue is full, try again later
POST/file/sync🟩 200The scan is completed before connection timeout
πŸŸ₯ 400Invalid API key
πŸŸ₯ 403Unsupported Callback URL
πŸŸ₯ 408Timed out response: scan is still in progress, but the connection is timed out
πŸŸ₯ 411Content-length header is missing from the request
πŸŸ₯ 422Body input is empty
πŸŸ₯ 500Internal server error
πŸŸ₯ 503Server is too busy, scan queue is full, try again later
GET/file/{data_id}🟩 200Entire analysis report generated by MetaDefender Core
πŸŸ₯ 500Unexpected event on server
GET/file/{data_id}/blocked-leaves🟩 200Returns list of blocked leaf files
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/archive/{data_id}🟩 200Entire analysis report, containing all extracted files, generated by MetaDefender Core
πŸŸ₯ 500Unexpected event on server
GET/hash/{md5|sha1|sha256}🟩 200Get information or file
πŸŸ₯ 404Invalid hash format
GET/file/webhook/{data_id}🟩 200Webhooks status fetched successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/file/rules🟩 200Returns the list of available rules
πŸŸ₯ 500Unexpected event on server
GET/file/converted/{data_id}🟩 200Returns the sanitized content
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/file/download/{data_id}🟩 200Returns the sanitized or DLP processed content
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/quarantine/{sha256}/download🟩 200Returns the quarantined file
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
POST/file/{data_id}/cancel🟩 200Batch canceled or analysis successfully canceled
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Batch not found (invalid ID) or request resource not found
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server

Batch

API RequestAPI ResponseMeaning
POST/file/batch🟩 200Batch created successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/file/batch/{batchId}/close🟩 200Batch request successfully closed
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/file/batch/{batchID}🟩 200Batch progress paginated report (50 entries/page)
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/file/batch/{batchId}/certificate🟩 200Signed batch result and certificate are sent back in response body (YAML format)
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
POST/file/batch/{batchId}/cancel🟩 200Batch canceled
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Batch not found (invalid ID)
πŸŸ₯ 500Unexpected event on server

Admin

API RequestAPI ResponseMeaning
GET/admin/export🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/admin/export/v2🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/import🟩 200Request processed successfully
⬜ 304The configuration has not changed
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/import/v2🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/user🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Batch not found (invalid ID)
πŸŸ₯ 500Unexpected event on server
POST/admin/role🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/admin/license/backup🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/admin/license/backup🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/admin/license/backup/nomination🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server

License

API RequestAPI ResponseMeaning
POST/admin/license/activation🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/admin/license🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
GET/admin/license🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server

Config

API RequestAPI ResponseMeaning
PUT/admin/config/auditlog🟩 200Successful file submission
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/quarantine🟩 200The scan is completed before connection timeout
πŸŸ₯ 403Unsupported Callback URL
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/sanitize🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/scanhistory🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/session🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/update🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/admin/config/skip🟩 200A list of all skip/white/black listed hashes
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/skip🟩 200Put a list of all skip/white/black listed hashes to the server
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
POST/admin/config/skip🟩 200Add a list of all skip/white/black listed hashes to the server
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Batch not found (invalid ID) or request resource not found
πŸŸ₯ 500Unexpected event on server
DELETE/admin/config/skip🟩 200Delete list of all skip/white/black listed hashes successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/admin/config/webhook🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/webhook🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/admin/config/proxy🟩 200A proxy list is returned
πŸŸ₯ 403Invalid user information or not allowed
PUT/admin/config/proxy🟩 200A proxy list is returned
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
POST/admin/config/proxy/testconnection🟩 200Request processed successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
GET/admin/config/file/sync🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Error while requesting information
PUT/admin/config/file/sync🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Error while modifying configuration
GET/admin/config/sessioncookie🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/sessioncookie🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 404Request’s resource was not found
πŸŸ₯ 500Unexpected event on server
GET/admin/config/healthcheck🟩 200Health check criterias to determine whether MetaDefender Core server status is healthy or not
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/admin/config/healthcheck🟩 200Health check criterias to determine whether MetaDefender Core server status is healthy or not
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 500Error while modifying configuration

YARA

API RequestAPI ResponseMeaning
GET/admin/config/yara/sources🟩 200Returns a list of YARA engine sources
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
PUT/admin/config/yara/sources🟩 200Returns a list of YARA engine sources
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
GET/yara/package🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server
POST/yara/generate🟩 200Request processed successfully
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 500Unexpected event on server

Engines

API RequestAPI ResponseMeaning
POST/admin/engine/{engineId}/pin🟩 200Pin engine successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/engine/{engineId}/unpin🟩 200Unpin engine successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/engine/{engineId}/enable🟩 200Enable engine successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
POST/admin/engine/{engineId}/disable🟩 200Disable engine successfully
πŸŸ₯ 400Bad request (e.g. invalid header, API key missing or invalid)
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server

Statistics

API RequestAPI ResponseMeaning
GET/version🟩 200Provides product ID and version information
πŸŸ₯ 500Unexpected event on server
GET/stat/engines🟩 200Returns an array with all engines and their details
GET/stat/nodes🟩 200Returns an array with all engines and their details
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/stat/activeperformance🟩 200Returns an active performance report on Metadefender Core
πŸŸ₯ 403Invalid user information or not allowed
πŸŸ₯ 405The user has no rights for this operation
πŸŸ₯ 500Unexpected event on server
GET/readyz🟩 200The service is currently healthy
πŸŸ₯ 500Unexpected event on server
πŸŸ₯ 503The service is currently unhealthy

If you are Encountering Errors On MetaDefender Core and Are Unable To Find a Solution Within Our Documentation Or Knowledge Base, please follow these instructions on How To Create a Support Package, before creating a support case or chatting with our support engineer.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard