79543846

Date: 2025-03-29 20:20:38
Score: 0.5
Natty:
Report link

After several attempts, I have concluded the following points:

Pros & Cons

Advantage: A proper 404 status is returned.

Drawback: The server.ts file requires a knownEntitiesList, or an API call to verify existence, which can introduce additional latency. If the entity exists, this approach results in two API calls instead of one (one server-side check and another browser-side request).

An example is available in StackBlitz

Know with this method using curl you get:

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bachir31