TanStackT
TanStack9mo ago
11 replies
dual-salmon

API route error handling

What is the expected behaviour returning rejected promises in an API route?

I do not see any errors in the logs, and the API returns a 503 status code. I was expecting an error message and a 500 status code.
Was this page helpful?