Axios Handling the response

The response for a request contains the following information.

data: {}The response that was provided by the server
status: 200The HTTP status code from the server response
statusText: 'OK'The HTTP status message from the server response
headers: {}The HTTP headers that the server responded with all header names are lowercased and can be accessed using the bracket notation
config: {}The config that was provided to `axios` for the request
request: {}The request that generated this response it is the last ClientRequest instance in node.js (in redirects) and an XMLHttpRequest instance in the browser

Leave a Reply

Your email address will not be published. Required fields are marked *