Fixing http client errors encountered with the API calls in a React-Node Express Project

Anna Ikoki
3 min readNov 15, 2021

In a Nodejs and Expressjs & Reactjs project using Spotify Web API, I encountered some http errors: 400, 401, 405, 403 and CORS. This is what they meant and how they were resolved:

401 — Unauthorised

401

This error means bad or expired token. It happen if the user revoked a token or the access…

--

--