Skip to main content

API Errors

Understanding and handling API errors correctly ensures your integration is robust and user-friendly.

Error Response Format

All errors follow a consistent structure:

Error Codes

INVALID_INPUT

The request body or parameters are invalid. HTTP Status: 400 Causes:
  • Missing required fields
  • Invalid data types
  • Malformed JSON
Example:
Solution: Ensure all required fields are present and correctly formatted.

RATE_LIMIT_EXCEEDED

Request exceeds rate limit for the endpoint. HTTP Status: 429 Causes:
  • Too many requests in the rate limit window
  • Multiple clients sharing the same IP
Example:
Headers:
Solution: Wait until the X-RateLimit-Reset time or Retry-After seconds have passed. See Rate Limits for handling strategies.

INTERNAL_ERROR

An unexpected server error occurred. HTTP Status: 500 Causes:
  • Temporary server issues
  • Database connection problems
  • Unexpected data conditions
Example:
Solution: Retry the request after a delay. If the issue persists, contact support.

NOT_FOUND

Requested resource does not exist. HTTP Status: 404 Causes:
  • Invalid endpoint path
  • Removed compatibility data
Example:
Solution: Verify the endpoint URL and technology names are correct.

NO_TECH_DETECTED

Scan request found no recognizable technologies. HTTP Status: 400 Causes:
  • No packages in dependencies
  • Unrecognized package names
  • Empty package.json
Example:
Solution: Verify your dependencies array or package.json contains valid package names.

HTTP Status Codes

Error Handling Best Practices

1. Always Check HTTP Status

2. Implement Retry Logic

3. Log Errors Contextually

4. Provide User-Friendly Messages

Testing Error Handling

Test Scenarios

Example Test

Getting Help

Persistent Errors

If you encounter errors consistently:
  1. Check Status Page - Verify service is operational
  2. Review Your Code - Ensure proper error handling
  3. Check Rate Limits - Verify you’re within limits
  4. Contact Support - Include error code and request details

Support Contact

What’s Next


Need help? Contact Support