← Questions

Call a flaky HTTP API with Python requests and handle every error

0
TeslaCodingLast asked Sep 2026

A coding interview question asked in Tesla's technical phone screen, last asked Sep 2026. It tests http, error handling and retries.

Using Python's requests library, write a small client for a few endpoints of an API you have documentation for. The code does not need to run against a real server, but it must handle every failure properly: client errors, server errors…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Tesla · Technical phone screen · Last asked Sep 202645 min · 10 to 20 minutes on your background, then one compact coding, debugging or design task in CoderPad that must run

What it tests

http · error handling · retries · python

Your code and the AI tutor open when you unlock this question.