The front end and back end are handled differently.
The term “document object” typically refers to the Document Object Model (DOM), which is a JavaScript programming interface used in web browsers for representing web pages. The DOM is specific to the front end and is not applicable to the back end.
The front-end code and the back-end code runs separately
its like consoling the document object in the node.js app…
If you want to handle 429 errors (ratelimit error), you can use the status code from the response/error to check and update the UI accordingly.