Handle 501 similarly to 404 in last commit.