Be specific on catching github exceptions.

Finishes [#80215916]

The corresponding UI PR (https://github.com/CenturyLinkLabs/panamax-ui/pull/382) catches the exception on the UI side and show an appropriate error message.