InterviewBuddy
All interview questions

When should an API return 404?

Intermediate

Answer

Return 404 when the requested resource is not found or intentionally not disclosed. Authorization policy may choose to hide whether a private resource exists.