```js axios.patch('url') .then(function (response) { // show a successnotification }) .catch(function (error) { // show an error notification }); ```