Return a 500 when its an error.