keep the server up when there is no accept header
add better error handling in the lowest level of the request
remove newrelic transaction call, it needs to be handled somewhere else
add protection against infinite template not found loops