title: Error: Request failed with status code 422 in javaScript
body: <p>I am using JS axios. I do not understand this error.
  error:</p>
  <pre><code>Error: Request failed with status code 422
  at createError (createError.js:16)
  at settle (settle.js:17)
  at XMLHttpRequest.handleLoad (xhr.js:62)
  </code></pre>
  <p>This is my code:</p>
  <pre><code>const config = {
          headers: { Authorization: `Bearer ${localStorage.getItem('id_token')}`,
          headers: {
              // Overwrite Axios's automatically set Content-Type
              'Content-Type': 'application/json'
            }
       }
      };
      
      const bodyParameters = {
          password:values.newPassword
      };
      
      
      setIsLoading(true)
  
      //localhost:5000/api/v1/user/updatepassword
  
      Axios.post('http://127.0.0.1:5000/api/v1/user/updatepassword', 
      bodyParameters,
      config
         
      )
  </code></pre>
  <p>And I am testing with fetch in chrome console. and got this error:</p>
  <pre><code>SyntaxError: Unexpected Identifier
  </code></pre>