Issue #6993 resolved
Do not return the full html when accessing branches over the api for a deleted repo (BB-8058)
If you access the API for /branches on a deleted (but redirected) repo, you'll get the full page 404 with the redirect instructions. The API shouldn't do this.
This has been shown to break some clients expecting a pure json response. Like Bamboo.