everything proceeds from here as if there was no issue with the URL

What about typo in URL - what if a BC leader renames or deletes a repo without telling you?

you should check for response code 200 at least