500 error is still appropriate in an error situation so that nginx can fail over