Check http response code from curl and return error for codes greater
than 400.
In particular this covers the case of non-existing accounts on social
media sites as the failure will propagate to the main function which
will exit with a non-zero code.