Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios how to get error response

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