Creating error button for ajax fetch.
Example : deleting a file by a button. While fetch is quering, qe can add the btn-loading class, but if error, we could be able to add a class btn-error and then, with tabler-icon, show a exclamation mark.