IT Service Integrations.
Write eight independent Python helpers for simulated service-desk responses, safe ticket drafts, exact API scope, stable incident keys, confirmed ticket IDs, controlled alerts, retry decisions and evidence-based handoffs.
Real Python, simulated integrations: This isolated workbench evaluates Python using local response dictionaries. It never issues HTTP requests, creates tickets, sends email, calls external APIs or requests credentials. Use the written lesson for the independent offline adapter project.
Write it. Run it. Understand it.
Real Python execution, a variable trace and feedback against the requirements. You write the code—answers aren't revealed up front.
Interpret an API response without overstating success
Write api_outcome(status, body). status must be an integer but not a bool. Return 'created' only for HTTP 201 and a dictionary body containing a nonempty string id; return 'queued' only for HTTP 202 and a nonempty string job_id; 'rate-limited' for 429; 'auth-error' for 401 or 403; 'client-error' for 400 or 422; 'server-error' for 500, 502, 503 or 504; and 'unknown' otherwise. Do not treat 200 alone as proof that a ticket was created. Print the sample result.
createdTry solving it before asking for help. Hints never show a completed program.
Your printed output and errors will appear here.
Run the code, then step through the executed lines to watch variable values change.
After completing the coding clinic, use the shared Continue Your Learning Path panel below to mark this Practice milestone complete. The next guided milestone is Lesson 04, Infrastructure Monitoring; continue using the shared panel, rather than skipping the current coding clinic.
