How to stop HTTP error codes from automatically being logged in the frontend?
I am trying to make a login system using a typescript/react frontend and a typescript/nodejs backend. Currently, when the user is logged out, my backend returns a 401 (not authorized) error code, since the user isn’t logged in. My issue is that this error code gets automatically logged in the console without me telling it to do so.
How to stop HTTP error codes from automatically being logged in the frontend?
I am trying to make a login system using a typescript/react frontend and a typescript/nodejs backend. Currently, when the user is logged out, my backend returns a 401 (not authorized) error code, since the user isn’t logged in. My issue is that this error code gets automatically logged in the console without me telling it to do so.