I make SSR application.
My component gets some data from the remote API in preFetch() method. If API answers “not found” my component has to send 404 status code to the client. How can I do this behavior?
I make SSR application.
My component gets some data from the remote API in preFetch() method. If API answers “not found” my component has to send 404 status code to the client. How can I do this behavior?