Errors and security
Response codes
Section titled “Response codes”| 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.
Credential handling
Section titled “Credential handling”- Store Bearer tokens and API keys in the target system’s secret manager.
- Send credentials only in the documented HTTP header.
- Never place credentials in a URL, repository, container image, ticket, wiki page, or log.
- Limit access to components that must call the corresponding API scope.
- Revoke and reissue a credential if exposure is suspected.
- Keep TLS certificate validation enabled.
Castles networks
Section titled “Castles networks”Castles public networks: 5.42.211.0/24, 185.189.255.0/24, and 194.147.90.0/24.
Contact support
Section titled “Contact support”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.