question

Mr Slo avatar image
Mr Slo asked

Return errors without hacking 200 code

Is there a way to return non 200 responses when an error is riden ?


I understand i can return 200 with the error information wrapped, but this means all analytics tools for standard error catching wont work unless specifically setup. Not to mention is overall not a good practice to return errors on response 200.

So my question is, is there a way to return an error message with response code not 500 ? Ive tried returnin a response that contains a PlayfabError but seems that's not working.

Cheers !

support
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

I believe you are talking about calling Azure Function Cloud Script with PlayFab API. This is by design. If you want the feature that being able to pass the error message through a erroneous response, you may open a thread in the Feature Request Forum.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.