From: <forums_at_java.net>
Date: Tue, 14 Feb 2012 17:08:30 -0600 (CST)
Hi there,
The main resason why it is using setStatus instead of sendError is because a
resource request
is a request that is always triggered from a main page. If it is not found it
will set the status
of 404 and a short body that indicates the resource is not found.