Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get json data when we get error code in axios

axios.post('/formulas/create', {
	name: "",
	parts: ""
})
.then(response => { 
	console.log(response)
})
.catch(error => {
    console.log(error.response)
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #json #data #error #code #axios
ADD COMMENT
Topic
Name
7+4 =