When a user clicks on a button on a simple login form, a mechanism is triggered. This mechanism involves sending a POST request to a REST service with the user's provided credentials. If the credentials are correct, the success function is executed, otherwise, an error function handles the response.
The issue arises when an error occurs before the error function is called. Angular displays the error in the browser console before any error handling can take place. This behavior occurs even before the 'responseError' method of a http interceptor is triggered.
The error message displayed in the console indicates the HTTP error code and the request URL. This logging is unnecessary and I am looking to disable it. How can I achieve this with Angular version 1.2.14?