title: How can I get the response code from a VolleyError?
body: <p>I'm looking for a way to get the response code of a thrown VolleyError. My ErrorListener looks like this:</p>
  
  <pre><code>Response.ErrorListener errorListener = new Response.ErrorListener() {
      @Override
      public void onErrorResponse(VolleyError error) {
          error.printStackTrace();
          //Get response code here
          VolleyLog.e("Error: ", error.toString());
          VolleyLog.e("Error: ", error.getLocalizedMessage());
      }
  };
  </code></pre>
  
  <p>The 2 lines I send to my VolleyLog print the following:</p>
  
  <pre><code>03-12 10:57:56.932: E/Volley(7147): [1] 1.onErrorResponse: Error: 
  03-12 10:57:56.932: E/Volley(7147): [1] 1.onErrorResponse: Error: 
  </code></pre>
  
  <p>Volley does know what comes back because I can also see the following in my VolleyLog:</p>
  
  <pre><code>03-12 10:57:56.692: E/Volley(7147): [41854] BasicNetwork.performRequest: Unexpected response code 403 for https://*******/Employee/authenticate
  03-12 10:57:56.897: E/Volley(7147): [41854] BasicNetwork.performRequest: Unexpected response code 403 for https://*******/Employee/authenticate
  03-12 10:57:56.902: W/System.err(7147): com.android.volley.AuthFailureError
  03-12 10:57:56.902: W/System.err(7147):     at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:143)
  03-12 10:57:56.902: W/System.err(7147):     at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105)
  </code></pre>
  
  <p>So basically, what I want is to get that response code "403" (Forbidden).</p>