users@jersey.java.net

Returning error messages

From: tarjei <tarjei_at_nu.no>
Date: Wed, 01 Oct 2008 11:21:49 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, is there a nice way to return error messages together with an error
code?

Usecase: If I return 400 Bad Request to a client, it would help the
client a lot if the response also contained a hint on what the service
thought was wrong (for example validation errors).

Regards,
Tarjei
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI40EtYVRKCnSvzfIRAgXqAKCia9+HFMER17by0hODTHJzKcMf7wCeOMVw
xicHWvVVqKqQDthY1JWVCSA=
=HBMK
-----END PGP SIGNATURE-----