Setting the status code to a non-500 when delegating