title: How to get JSON error response in Volley onErrorResponse
body: <p>I have an API call with below details</p>
  
  <blockquote>
    <p>URL: <a href="http://pankajservers.in/api/v1/AuthenticateUser" rel="noreferrer">http://pankajservers.in/api/v1/AuthenticateUser</a> with Input params
    below</p>
    
    <p>EmailAddress and Password</p>
  </blockquote>
  
  <p>if I type wrong credentials, I get below JSON response with Status Code : 403</p>
  
  <pre><code>{"Status":false,"Message":"Invalid Credentials. 5 attempts left.","Data":null}
  </code></pre>
  
  <p><strong>Below is the Error Response Code.</strong></p>
  
  <pre><code>new Response.ErrorListener()
  {
      @Override
      public void onErrorResponse(VolleyError error)
      {
          if (null != error.networkResponse)
          {
              Log.d(TAG + ": ", "Error Response code: " + error.networkResponse.statusCode);
          }
      }
  });
  </code></pre>
  
  <p>Is there any way to get JSON response in this code block?</p>
  
  <p>I tried this post: <a href="https://stackoverflow.com/questions/34393788/volley-handle-onerrorresponse">Volley handle onErrorResponse</a></p>
  
  <p>But it seems it never execute parseNetworkError</p>