Catch 404s that occur from using a PAT in basic auth