How do I set a 200 ok header in a page


I have a problem where there is an API that sends specific data to my page’s url and expects to receive a 200 OK header. How do I produce this answer for the api? I am using flow-router for routing and data collection for a method that checks the data validity.

Hope that my question is clear.
Thank You in advance

Flow Router by default is for client side only routing. If you want proper header response codes returned, either look into using the Flow Router server side routing branch, or find another server side option.