Please check out this info through the link below. It states how the bank code is composed.
Here is the solution for Australia developers:
In Australia, BSB number has 6 digits. Forget about swift code if you see something like this. So for developers from other countries you should be able to figure error out with similar tricks.