Switch upstream error to 504