Skip to content

Instantly share code, notes, and snippets.

View ror6ax's full-sized avatar
:octocat:
hacking

Gregory Reshetniak ror6ax

:octocat:
hacking
  • Spaaace
View GitHub Profile
print("Hi Anton!")
axios.get('/user/12345')
.catch(function (error) {
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
console.log(error.response.data);
console.log(error.response.status);
console.log(error.response.headers);
} else if (error.request) {
// The request was made but no response was received
def a_function():
return "a value"
def a_method():
return self.value