refs #6661 changed it to return an HTTP 500 code as 505 is not really correct I think