<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is there a place I can see all possible error code that can come back from various APIs?]]></title><description><![CDATA[<p dir="auto">I'm trying to handle my game logic exclusively through cloud code.<br />
I know the default response has 200 in it, if we are using bridges/proxies and encounter a failure within the script, should we also set the main response status to some code other than 200?</p>
<p dir="auto">Also is there a way to simulate failures for testing? IE blocked network etc. I see the docs have some of the error codes that can be found, but it doesn't seem exhaustive.</p>
<p dir="auto">As always any adivce is appreciated!</p>
]]></description><link>https://forums.getbraincloud.com/topic/206/is-there-a-place-i-can-see-all-possible-error-code-that-can-come-back-from-various-apis</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 09:59:08 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/206.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Feb 2024 03:12:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there a place I can see all possible error code that can come back from various APIs? on Sun, 25 Feb 2024 20:54:20 GMT]]></title><description><![CDATA[<p dir="auto">There is a global list of reason codes here - <a href="https://docs.braincloudservers.com/api/appendix/reasonCodes" rel="nofollow ugc">https://docs.braincloudservers.com/api/appendix/reasonCodes</a></p>
]]></description><link>https://forums.getbraincloud.com/post/637</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/637</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Sun, 25 Feb 2024 20:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a place I can see all possible error code that can come back from various APIs? on Fri, 09 Feb 2024 15:58:10 GMT]]></title><description><![CDATA[<p dir="auto">Exactly, the error status code returned from the individual method can be incorporated into the script response.</p>
]]></description><link>https://forums.getbraincloud.com/post/625</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/625</guid><dc:creator><![CDATA[JasonL]]></dc:creator><pubDate>Fri, 09 Feb 2024 15:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a place I can see all possible error code that can come back from various APIs? on Sat, 03 Feb 2024 02:39:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://forums.getbraincloud.com/uid/60">@JasonL</a> -- just to clarify, that means that the base response status code is just whether or not the script itself was properly executed by the request, so the only exception would be like if the user wasn't authenticated or a network timeout, is that right? It doesn't account for anything like if a proxy/bridge request that was made within the script failed-- that we should include ourselves in a custom response/error field. Right?</p>
]]></description><link>https://forums.getbraincloud.com/post/621</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/621</guid><dc:creator><![CDATA[kuabs]]></dc:creator><pubDate>Sat, 03 Feb 2024 02:39:35 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a place I can see all possible error code that can come back from various APIs? on Fri, 02 Feb 2024 17:20:59 GMT]]></title><description><![CDATA[<p dir="auto">Note that the response status code for running a script indicates whether the script has been executed successfully or not. To return the status of the internal methods that were executed, it is usually to include them in the customized response.<br />
The best place to debug your cloud code script is the portal script editor, which can show the stack trace of your code, also the logs you added.</p>
]]></description><link>https://forums.getbraincloud.com/post/620</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/620</guid><dc:creator><![CDATA[JasonL]]></dc:creator><pubDate>Fri, 02 Feb 2024 17:20:59 GMT</pubDate></item></channel></rss>