title: Waiting time for a response from server using Axios
body: <p>I want to make the insertion of a new row using a command like:</p>
  
  <pre><code>axios.post('/user', {
      firstName: 'Fred',
      lastName: 'Flintstone'
    })
     .then(function (response) {
      console.log(response);
     })
     .catch(function (error) {
      console.log(error);
     });
  </code></pre>
  
  <p>I need the response to contain the new ID for the newly created user row containing the information for the user Fred Flintstone. However, since this is a DB one, my script might need to wait more for it. How can I control the waiting time for the response from the server? In other words<br>
  how could I do to tell javascript Axios command to wait some number of seconds before it triggers an error message due to "no response from the server". Is this possible?</p>