Handle the non-authorized status of the pcapi

Fix edina/fieldtrip-gb#90