server action
Answered
Mini Lop posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mini LopOP
How can I send status and error response to clientðŸ™
7 Replies
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
you can just return the state that you want to return to the client
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mini LopOP
Example
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mini LopOP
return {
status:401,
message:'Unauthorized'
}
status:401,
message:'Unauthorized'
}
Answer
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
for example, yea
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mini LopOP
Oh ok
Thank you
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
please mark solution