-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi, I got this fetchData method in my component:
fetchData(params, cb) {
superagent
.get(`${API_URL}/users/` + params.username)
.accept('json')
.set('Api', 'v1')
.end(function(err, res) {
cb(err, res && res.body);
})
},
How can I display a 404 message when the superagent returns a 404 from request?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels