I can’t figure out how to use the sendStatus () function correctly, does anyone have any examples?
не могу понять как правильно пользоваться функцией sendStatus () , есть-ли у кого примеры?
I can’t figure out how to use the sendStatus () function correctly, does anyone have any examples?
не могу понять как правильно пользоваться функцией sendStatus () , есть-ли у кого примеры?
See the article Velo: Creating a Router which discusses returning various response codes using the forbidden() , notFound() , ok() , redirect() , or sendStatus() functions.
The sendStatus() API has a couple of sample code snippets that you can copy and use.
Velo: Creating a Router does not contain information about sendStatus ()
sendStatus() API fails, I tried to get an answer but no luck
@sibprogsistem0 It should work as the other responses (forbidden, notFound, ok, redirect) work. Perhaps see if one of the others works to get an idea if your router code is working. Once it’s working, you can then change to sendStatus().
Then, after you verify with another response and after trying sendStatus you suspect that sendStatus() is not working, create a test scenario so that it can be evaluated by QA.
@yisrael-wix no, it does not return an answer. other functions work
@sibprogsistem0 Please share your code so we can see what you’re doing. Also, please post the URL of your site and explain how you test it.
@yisrael-wix
https://www.pavlenkovv.com
https://www.pavlenkovv.com/plansUsers
I am researching the capabilities of a router and came across the sendStatus function …
I cannot figure out how to use sendStatus correctly