1597. A debtor is in default by the sole operation of law where the performance of the obligation would have been useful only within a certain time which he allowed to expire or where he failed to perform the obligation immediately despite the urgency that he do so.
A debtor is also in default by operation of law where he has violated an obligation not to do, or where specific performance of the obligation has become impossible through his fault, and also where he has made clear to the creditor his intention not to perform the obligation or where, in the case of an obligation of successive performance, he has repeatedly refused or neglected to perform it.