Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios get status code

axios.get('/api')
	.catch(function (error) {
    	if (error.response) {
      		console.log(error.response.status);
    	}
	});
 
PREVIOUS NEXT
Tagged: #axios #status #code
ADD COMMENT
Topic
Name
3+2 =