Skip to content

Instantly share code, notes, and snippets.

View carvelsaputra's full-sized avatar
🏠
Working from home

Carvel Saputra Martaloho carvelsaputra

🏠
Working from home
View GitHub Profile
@albasyir
albasyir / axios-cheatsheet.md
Created March 21, 2021 04:31
Axios much better now as....

GET

// Make a request for a user with a given ID
axios.get('/user?ID=12345')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
@albasyir
albasyir / http_status.md
Last active April 29, 2021 09:58
HTTP Status

HTTP Status

1xx

  • 100 Continue
  • 101 Switching Protocols
  • 103 Early Hints

2xx = SUCCESS

  • 200 OK
  • 201 Created