InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 649–660 of 3610 questions

Backend & API EngineeringBeginner1 min read

Which HTTP status codes should an API use?

Use status codes consistently: 200 for successful retrieval/action, 201 for creation, 204 for success without a body, 400 for malformed/invalid input, 401 for unauthenticated, 403 for forbidden, 404 for missing resources, 409 for conflicts, 422 for semantic validation where adopted, 429 for rate limits, and 5xx for server failures.

Backend & API EngineeringAdvanced1 min read

What is HATEOAS?

HATEOAS exposes links or actions in resource representations so clients can discover available transitions.