When a portlet serveResource() call throws an exception, the portal ignores the exception and the portal page acts as if nothing happened.

A possible workaround is for the portlet to catch the exception and call the following to set the HTTP response code for the Browser:

this.resp.setProperty(ResourceResponse.HTTP_STATUS_CODE, Integer.toString(status));
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira