InterviewBuddy
All interview questions

How do you handle an unknown resource in a server page?

Intermediate

Answer

Fetch and authorize the resource; if it does not exist or should be treated as missing, call notFound. Do not render misleading empty data.