On my JSP pages I need the HEAD request to return "200 OK", but by default it returns "500 INTERNAL SERVER ERROR". Is there any way to change the default response a JSP page returns to a HEAD request?
Typically a web server will send HTTP responses as "200" if possible. In most cases, an error "500" is caused by a crashed process or exceptional situation in the web server.
Using Apache, the error.log file often contains details of why the "500" was sent. In IIS, many times information appears in the event log. Once these have been resolved, the server will likely return a "200" status code.