Closed AdrieneTZ closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
snowball | ❌ Failed (Inspect) | Nov 8, 2022 at 2:13AM (UTC) |
null
as not querying any record in route put record
& delete reocrd
if (Object.keys(theRecord).length !== 0)
. I keep figuring out why I can't get {}
.
Standardize error situations on each route, the form is:
example:
Rather than send a long sentence to the front end, pointing out the error fields is an easier way to let the front-end partner know what happened to the sent data.
Refer to the article linked below and change to my own version for this project
Ref: Best Practices for REST API Error Handling