Skip to main content

Error Codes Reference

Auto-generated

This page is auto-generated by scanning backend/src/routes/*.ts for error responses. Do not edit manually.

187 error responses found across 14 route files.

Client Errors (4xx)​

StatusMessageRoute FileEndpoint
400Invalid permissions. Allowed:admin.routes.tsPOST /roles
400Cannot rename system roleadmin.routes.tsPATCH /roles/:id
400Invalid permissionsadmin.routes.tsPATCH /roles/:id
400Cannot delete system roleadmin.routes.tsDELETE /roles/:id
400Validation failedadmin.routes.tsPOST /users
400Password must be at least 8 charactersadmin.routes.tsPOST /users/:id/reset-password
400Password must contain at least one uppercase letteradmin.routes.tsPOST /users/:id/reset-password
400Password must contain at least one lowercase letteradmin.routes.tsPOST /users/:id/reset-password
400Password must contain at least one numberadmin.routes.tsPOST /users/:id/reset-password
400Use the profile page to change your own passwordadmin.routes.tsPOST /users/:id/reset-password
400Cannot delete your own accountadmin.routes.tsDELETE /users/:id
400Start and end dates requiredadmin.routes.tsPOST /archives
400Invalid archive IDadmin.routes.tsPOST /archives/:id/restore
400Invalid interval. Must be at least 1 hour.admin.routes.tsPUT /sync/config
400Status must beadmin.routes.tsPOST /quarantine/:id/resolve
400Safety confirmation requiredadmin.routes.tsPOST /diary/purge-seeds
400Invalid scan ID. Must be a positive integer.admin.routes.tsGET /scan-history/scans/:scanId/history
400At least one scan must be selectedadmin.routes.tsPOST /scan-history/import
400Invalid scanId: ${scan.scanId}. Must be a positive integer.admin.routes.tsPOST /scan-history/import
400historyIds for scan ${scan.scanId} must be an arrayadmin.routes.tsPOST /scan-history/import
400Invalid dateRangeStart formatadmin.routes.tsPOST /scan-history/import
400Invalid dateRangeEnd formatadmin.routes.tsPOST /scan-history/import
400Cannot cancel job with status: ${job.status}admin.routes.tsPOST /scan-history/jobs/:jobId/cancel
400Cannot retry a job that is still in progressadmin.routes.tsPOST /scan-history/jobs/:jobId/retry-failed
400No failed runs to retryadmin.routes.tsPOST /scan-history/jobs/:jobId/retry-failed
400Bad Requestanomaly.routes.tsPOST /detect
400Bad RequestapiConfig.routes.tsPUT /
400(dynamic message)apiConfig.routes.tsPOST /sync-now
400userId and newPassword are requiredauth.routes.tsPOST /admin/reset-password
400Password must be at least 8 charactersauth.routes.tsPOST /admin/reset-password
400Password must contain at least one uppercase letterauth.routes.tsPOST /admin/reset-password
400Password must contain at least one lowercase letterauth.routes.tsPOST /admin/reset-password
400Password must contain at least one numberauth.routes.tsPOST /admin/reset-password
400MFA code must be exactly 6 digitsauth.routes.tsPOST /mfa/validate
400MFA token is requiredauth.routes.tsPOST /mfa/validate
400MFA not enabled for userauth.routes.tsPOST /mfa/validate
400MFA setup not initiated. Please start setup first.auth.routes.tsPOST /mfa/verify
400Invalid code. Please try again.auth.routes.tsPOST /mfa/verify
400Bad Requestauth.routes.tsPOST /refresh
400(dynamic message)dateExclusions.routes.tsPUT /bulk
400Bad Requestexport.routes.tsPOST /vulnerabilities/start
400Bad Requestreconciliation.routes.tsPOST /compare
400Bad RequestsavedFilters.routes.tsGET /
400Invalid ID formatsecurity.routes.tsPOST /blocked-ips/:id/unblock
400IP is already unblockedsecurity.routes.tsPOST /blocked-ips/:id/unblock
400IP address is requiredsecurity.routes.tsPOST /blocked-ips
400Invalid IP address or CIDR notation. Examples: 192.168.1.100, 10.0.0.0/24, 2001:db8::/32security.routes.tsPOST /blocked-ips
400Invalid reason. Must be one of: ${validBlockReasons.join(security.routes.tsPOST /blocked-ips
400Duration cannot exceed ${MAX_DURATION_HOURS} hours (1 year)security.routes.tsPOST /blocked-ips
400Invalid reason. Must be one of: ${validReasons.join(security.routes.tsPOST /whitelisted-ips
400Description must be a string under 500 characterssecurity.routes.tsPOST /whitelisted-ips
400IP is already removed from whitelistsecurity.routes.tsPOST /whitelisted-ips/:id/remove
400(dynamic message)sync.routes.tsPOST /start
400Invalid frequency. Must be between 1 and 24 hours.sync.routes.tsPUT /frequency
401Unauthorizedauth.routes.tsPOST /login
401Invalid current passwordauth.routes.tsPOST /change-password
401Invalid or expired MFA tokenauth.routes.tsPOST /mfa/validate
401MFA validation failedauth.routes.tsPOST /mfa/validate
401Invalid MFA codeauth.routes.tsPOST /mfa/validate
403Admin access requiredadmin.routes.tsGET /severity-debug
403Forbiddenauth.routes.tsPOST /login
403Forbiddenexport.routes.tsGET /vulnerabilities/status/:jobId
404Role not foundadmin.routes.tsPATCH /roles/:id
404User not foundadmin.routes.tsPATCH /users/:id
404Archive not foundadmin.routes.tsDELETE /archives/:id
404Job not foundadmin.routes.tsGET /sync/job/:id/stats
404Record not foundadmin.routes.tsPOST /quarantine/:id/resolve
404Job not found or expiredadmin.routes.tsGET /stats/recalculate/:jobId
404Not Foundanomaly.routes.tsPUT /:date/status
404User not foundauth.routes.tsPOST /change-password
404(dynamic message)dateExclusions.routes.tsPUT /:date/anomaly-status
404Not Foundexport.routes.tsGET /vulnerabilities/status/:jobId
404No logs to exportexport.routes.tsGET /sync-logs/download
404Not FoundsavedFilters.routes.tsPUT /:id
404Blocked IP entry not foundsecurity.routes.tsPOST /blocked-ips/:id/unblock
404Whitelist entry not foundsecurity.routes.tsPOST /whitelisted-ips/:id/remove
404(dynamic message)vulnerabilities.routes.tsGET /:pluginId
405Method Not AllowedapiConfig.routes.tsPOST /
409Role already existsadmin.routes.tsPOST /roles
409User with this email already existsadmin.routes.tsPOST /users
409A recalculation is already in progressadmin.routes.tsPOST /stats/recalculate
409GATEKEEPER_BLOCKEDadmin.routes.tsPOST /stats/recalculate
409An import job is already in progressadmin.routes.tsPOST /scan-history/import
409ConflictsavedFilters.routes.tsPOST /
409IP address is already blockedsecurity.routes.tsPOST /blocked-ips
409IP address is already whitelistedsecurity.routes.tsPOST /whitelisted-ips
409A backfill or rebuild operation is already running. Please wait for it to complete.sync.routes.tsPOST /backfill

Server Errors (5xx)​

StatusMessageRoute FileEndpoint
500(dynamic message)admin.routes.tsGET /severity-debug
500Failed to fetch rolesadmin.routes.tsGET /roles
500Failed to create roleadmin.routes.tsPOST /roles
500Failed to update roleadmin.routes.tsPATCH /roles/:id
500Failed to delete roleadmin.routes.tsDELETE /roles/:id
500Failed to fetch usersadmin.routes.tsGET /users
500Failed to create useradmin.routes.tsPOST /users
500Failed to update useradmin.routes.tsPATCH /users/:id
500Failed to reset passwordadmin.routes.tsPOST /users/:id/reset-password
500Failed to delete useradmin.routes.tsDELETE /users/:id
500Failed to unlock useradmin.routes.tsPOST /users/:id/unlock
500Failed to fetch settingsadmin.routes.tsGET /settings
500Failed to update settingsadmin.routes.tsPUT /settings
500Failed to fetch archivesadmin.routes.tsGET /archives
500Failed to create archiveadmin.routes.tsPOST /archives
500Failed to restore archiveadmin.routes.tsPOST /archives/:id/restore
500Failed to delete archiveadmin.routes.tsDELETE /archives/:id
500Failed to fetch archive statsadmin.routes.tsGET /archives/stats
500Failed to detect gapsadmin.routes.tsGET /sync/gaps
500Failed to fetch job statsadmin.routes.tsGET /sync/job/:id/stats
500Failed to fetch sync logsadmin.routes.tsGET /sync/logs
500Failed to fetch sync configadmin.routes.tsGET /sync/config
500Failed to update sync configadmin.routes.tsPUT /sync/config
500Failed to fetch quarantine recordsadmin.routes.tsGET /quarantine
500Failed to fetch quarantine statsadmin.routes.tsGET /quarantine/stats
500Failed to resolve quarantine recordadmin.routes.tsPOST /quarantine/:id/resolve
500Failed to fetch coverageadmin.routes.tsGET /stats/coverage
500Failed to fetch cleanup logsadmin.routes.tsGET /stats/cleanup-logs
500Failed to get recalculation statusadmin.routes.tsGET /stats/recalculate/:jobId
500Failed to fetch rate limit statusadmin.routes.tsGET /ratelimit/status
500Failed to update rate limit configadmin.routes.tsPUT /ratelimit/config
500Failed to fetch severity filteradmin.routes.tsGET /severity-filter
500Failed to update severity filteradmin.routes.tsPUT /severity-filter
500Failed to fetch severity summaryadmin.routes.tsGET /severity-summary
500Failed to validate snapshotsadmin.routes.tsGET /snapshots/validate
500Failed to repair snapshotsadmin.routes.tsPOST /snapshots/repair
500Failed to discover scansadmin.routes.tsGET /scan-history/scans
500Failed to get history for scan ${scanId}admin.routes.tsGET /scan-history/scans/:scanId/history
500Failed to start import jobadmin.routes.tsPOST /scan-history/import
500Failed to get job statusadmin.routes.tsGET /scan-history/jobs/:jobId
500Failed to list import jobsadmin.routes.tsGET /scan-history/jobs
500Failed to cancel jobadmin.routes.tsPOST /scan-history/jobs/:jobId/cancel
500Failed to retry failed runsadmin.routes.tsPOST /scan-history/jobs/:jobId/retry-failed
500Server Erroranomaly.routes.tsGET /summary
500Server ErrorapiConfig.routes.tsGET /
500Sync FailedapiConfig.routes.tsPOST /sync-now
500Failed to fetch assetsassets.routes.tsGET /
500Failed to get asset summaryassets.routes.tsGET /summary
500Failed to get vulnerability countsassets.routes.tsGET /vulnerability-counts
500Server Errorauth.routes.tsPOST /login
500Failed to change passwordauth.routes.tsPOST /change-password
500Failed to reset passwordauth.routes.tsPOST /admin/reset-password
500MFA validation failedauth.routes.tsPOST /mfa/validate
500Failed to initiate MFA setupauth.routes.tsPOST /mfa/setup
500Failed to verify MFAauth.routes.tsPOST /mfa/verify
500Server Errordashboard.routes.tsGET /kpis
500(dynamic message)dateExclusions.routes.tsGET /
500Export Start Failedexport.routes.tsPOST /vulnerabilities/start
500Status Check Failedexport.routes.tsGET /vulnerabilities/status/:jobId
500Download Failedexport.routes.tsGET /vulnerabilities/download/:jobId
500Export Failedexport.routes.tsGET /vulnerabilities
500Summary Failedexport.routes.tsGET /summary
500Logs Failedexport.routes.tsGET /sync-logs
500Server Errorreconciliation.routes.tsGET /counts
500Internal Server ErrorsavedFilters.routes.tsGET /
500Failed to fetch security logssecurity.routes.tsGET /logs
500Failed to fetch security statssecurity.routes.tsGET /stats
500Failed to check security alertssecurity.routes.tsGET /alerts
500(dynamic message)security.routes.tsGET /health
500Failed to fetch blocked IPssecurity.routes.tsGET /blocked-ips
500Failed to unblock IPsecurity.routes.tsPOST /blocked-ips/:id/unblock
500Failed to block IPsecurity.routes.tsPOST /blocked-ips
500Failed to fetch whitelisted IPssecurity.routes.tsGET /whitelisted-ips
500Failed to whitelist IPsecurity.routes.tsPOST /whitelisted-ips
500Failed to remove whitelisted IPsecurity.routes.tsPOST /whitelisted-ips/:id/remove
500Failed to get sync statussync.routes.tsGET /status
500Failed to start syncsync.routes.tsPOST /start
500Failed to cancel syncsync.routes.tsPOST /cancel/:syncId
500Failed to run aggregationsync.routes.tsPOST /aggregate
500Failed to start backfillsync.routes.tsPOST /backfill
500Failed to start trend rebuildsync.routes.tsPOST /rebuild-trends
500Failed to get sync historysync.routes.tsGET /history
500Failed to get sync frequencysync.routes.tsGET /frequency
500Failed to set sync frequencysync.routes.tsPUT /frequency
500Failed to get audit logssync.routes.tsGET /audit-log
500Failed to get statssync.routes.tsGET /stats
500Failed to get sync health metricssync.routes.tsGET /health
500Failed to get interrupted syncssync.routes.tsGET /interrupted
500Failed to resume syncsync.routes.tsPOST /:id/resume
500Failed to get integrity statussync.routes.tsGET /integrity-check
500Failed to start integrity backfillsync.routes.tsPOST /integrity-backfill
500Failed to discard syncsync.routes.tsPOST /:id/discard
500Database not connectedverify.routes.tsGET /verify-jan17
500(dynamic message)verify.routes.tsGET /verify-jan17
500(dynamic message)vulnerabilities.routes.tsGET /
500Error fetching vulnerability summaryvulnerabilities.routes.tsGET /summary
503Database not availableadmin.routes.tsPOST /users
503Database unavailableauth.routes.tsPOST /change-password
503Database unavailablesavedFilters.routes.tsGET /
503Database unavailablesecurity.routes.tsPOST /blocked-ips/:id/unblock

Generated on 2026-04-05