On Tuesday 24 October 2006 15:58, Mika Tuupola wrote:
> On Oct 24, 2006, at 14:43, Robert Wagner wrote:
> > how about that:
> > if an error occours, let the server send a 500 header and the error
> > message as a content.
> >
> > header("HTTP/1.1 500 Internal Server Error");
> > print("this cannot be done.");
>
> Agreed. I find error headers to be more elegant and universal
> solution than sending "ERROR" string in a reply. Will implement this
> soon(ish).
Just my $0.02: I find this odd. Imagine that you want some processing to be
done based on the input (i.e. server side email address checking) (We all
agree that any validation also needs to be performed at the serverside,
right?).
If the provided email address appears to be incorrect, I would never think
about throwing a 500 server error.... A small JSON object with an
error/exception message would seem much more logical to me...
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/