node now returns an error code when the reddit api fails to work