Skip to content

Errors and security

Code Meaning
200 OK Request completed
400 Bad Request Invalid parameter, address, port, or JSON body
401 Unauthorized Missing or invalid credential
403 Forbidden Credential is valid but the operation is not allowed
404 Not Found Project, server, address, or attack was not found
503 Service Unavailable Operation is temporarily unavailable

Save the HTTP status and response body for diagnostics. Remove Authorization and X-API-Key values before writing any request data to logs.

  1. Store Bearer tokens and API keys in the target system’s secret manager.
  2. Send credentials only in the documented HTTP header.
  3. Never place credentials in a URL, repository, container image, ticket, wiki page, or log.
  4. Limit access to components that must call the corresponding API scope.
  5. Revoke and reissue a credential if exposure is suspected.
  6. Keep TLS certificate validation enabled.

Castles public networks: 5.42.211.0/24, 185.189.255.0/24, and 194.147.90.0/24.

Provide the following information to Castles support:

  • project identifier;
  • request date, time, and time zone;
  • HTTP method and path without secret parameters;
  • HTTP response code;
  • credential-free error body;
  • attack UID or server IP address and primary port when relevant.

Never include a Bearer token or API key in a support request.