API Design · Middle · Question 72 of 75

When should an API return 410 Gone rather than 404?

Explanation

410 tells clients and crawlers to stop asking. It's useful after an endpoint's sunset date.

Further reading

Problem with a question

API Design · Middle · question 72

Test yourself

Take the API Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz