1. Parse config with custom errors
medium25 XPDefine class ConfigError(Exception). Write parse_port(env: dict) -> int that reads env["PORT"], converts to int, and checks 1–65535. Raise ConfigError with a helpful message in every failure case (missing, not a number, out of range), chaining the original exception where there is one.
Ctrl/⌘ + Enter runs the tests · Esc then Tab leaves the editor