#7 most askedVery commonEasyHTTP & APIs
HTTP methods and status codes
New to HTTP & APIs? Learn it from scratch firstHTTP: Requests & Responses β
π’ Asked in real interviews
No reports yet. Were you asked this? Be the first to say where.Explain the main HTTP methods and the status-code families. What's the difference between PUT and PATCH?
π€ Answer it out loud, then check yourself
Say your answer as if the interviewer is listening (30β90 seconds). Then reveal what a strong answer covers and tick what you said.
const res = new Response(JSON.stringify({ error: "Too many attempts" }), { status: 429, headers: { "Retry-After": "60" } });
console.log(res.status, res.ok, res.headers.get("Retry-After"));
Answer out loud first, then compare.
Want to rehearse it?Answer this to the AI interviewer and get a verdict β