users@jersey.java.net

Response.Status ?

From: <Juergen.Zimmermann_at_HS-Karlsruhe.de>
Date: Wed, 3 Sep 2008 10:26:58 +0200

javax.ws.rs.core.Response.Status contains several values like NOT_FOUND, OK,
... Such status codes are available as constants in the class
java.net.URLConnection, too (HTTP_NOT_FOUND, HTTP_OK, ...).

When implementing a resource class what is considered as best practice?
Using the constants of Response.Status or of URLConnection?