Question 7 of 10Pro Only

What HTTP status codes should a well-designed REST API return? Explain when to use each category and give examples of common codes.

Sample answer preview

## HTTP Status Code Categories Status codes are grouped into five categories based on their first digit: | Range | Category | Meaning | |-------|----------|---------| | 1xx | Informational | Request received, processing continues | | 2xx | Success | Request successfully…

HTTP status codes200201400401403

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Full-Stack Developer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime