Repository navigation
feat: named error codes for ports - #25
Conversation
Fixes #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: feat: named error codes for portsVerdict: SHIP Checked against usedock/dock main (2fb1128), Naming follows the existing typed-subclass pattern ( Fixed on the branch (ac78d34): the new names were inserted before BlockingNone. Non-blockingNone. Checks
|
Closes #24
What
Adds the
port_not_found(404),port_limit_reached(409) andports_unavailable(503) error codes to this SDK's named codes, the same way the connector and image codes were added. README notes that port 2222 is reserved (validation_error) and a Dock exposes at most 10 ports.Why
Backend returns these codes for the ports API (verified against apps/backend/src/docks/dock-ports.service.ts); SDK users should not need string literals.
How to verify
Run the SDK test suite; the error-code test now covers the three port codes.
Risk
Low. Additive constants/classes and docs only.
🤖 Generated with Claude Code