Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
notfound view: use HTTPTemporaryRedirect as default #3328
referenced this pull request
Aug 17, 2018
Bleh. A mistake made in 2011 is coming back to haunt us. In 8c2a9e6, I collapsed the concept of a generic NotFound with the HTTP exception HTTPNotFound. This never should have happened, because people are going to be hella confused when they raise HTTPNotFound (302) and wind up with a 307. I'm not sure how to fix it.
I suspect we should bring back the concept of a generic NotFound and a generic Forbidden, and figure out some way to de-transition people from using the specific HTTP exceptions back to using the framework-generic ones. I don't think we should change the default notfound response code until we do this.