Back

Res.json status type

  • 0
  • Web
Ajit Singh
1 Jul, 2023, 10:38

in res.json or res.text is the status parameter a string or Number or some unique token in functions runtime

TL;DR
The user is asking about the data type of the 'status' parameter in the res.json or res.text functions in Appwrite. They are unsure if it should be a string, number, or some unique token. A solution is not provided in the thread.
Ajit Singh
1 Jul, 2023, 10:38

Cound not find anything in the documentation

Maniac_Fighter
1 Jul, 2023, 11:36

seems like integer

Drake
2 Jul, 2023, 01:30

I would advise against sending a value for that right now. It can cause problems

Binyamin
2 Jul, 2023, 15:49

In any case the status you're setting is only between the function and Appwrite executor.

And, then, Appwrite's adding to the execution object. But the response from Appwrite will always be 200.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more