What should PUT return when it creates versus updates?
QuizMediumAsked in: Capgemini, Coupa, Infosys, TCS
According to RFC 9110, what does a server send when a PUT succeeds?
- 201 Created if the PUT created a new resource; 200 OK or 204 No Content if it replaced an existing one
- Always 201 Created
- Always 202 Accepted
- Always 200 OK with the full resource
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.