I return custom wrapper object with a field for my own internal status
codes. The wrapper object is a generic class so the playload/data can be
whatever I need to return.
Essentially unless something goes wrong my Endpoints always return 200. The
caller has to inspect the object returned to
Sorry, I glossed over that you're using endpoints, not writing servlet code
directly. My answer probably doesn't help.
On Sunday, June 1, 2014 9:42:25 AM UTC-7, Kristopher Giesing wrote:
You don't mention which language you're using. If this is Java, you'd call
response.sendError(int
You don't mention which language you're using. If this is Java, you'd call
response.sendError(int errorCode, String message) on the servlet's
HttpServletResponse input argument, but I don't know offhand what it would
be in Go, Python, or PHP.
- Kris
On Tuesday, May 27, 2014 1:06:44 PM UTC-7,
I don't believe this is currently supported. There's a similar issue
created specifically for Java runtime:
https://code.google.com/p/googleappengine/issues/detail?id=10974
You could create a new one w/o specifying a runtime as a generic feature
request.
Cheers.
On Tuesday, 27 May 2014