in reply to Re: EyeBall stumps BodBall
in thread EyeBall stumps BodBall (Error Handling)
The return values in that are canonically (in JavaScript terms) objects, i.e. in Perl terms hash-refs, which have at least one of data and/or errors. It does exception-catching to turn those into errors entries.
I mention this because it is "guaranteed" (with the usual caveats) to return JSON. I would suggest your web service should adopt a similar philosophy, so that 500s aren't possible, and an appropriate return to the user always happens.
|
---|