Return a 500 if an error occurs.