Skip to content

Instantly share code, notes, and snippets.

@victorvassilev
victorvassilev / axios-catch-error.js
Created October 5, 2018 09:38 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
axios.put(this.apiBaseEndpoint + '/' + id, input)
.then((response) => {
// Success
})
.catch((error) => {
// Error
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
// console.log(error.response.data);
@victorvassilev
victorvassilev / README.md
Created May 14, 2018 10:20 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet