title: Handle Volley error
body: <p>I want to handle and show some message in <code>onErrorResponse</code></p>
  
  <p>below is my code.</p>
  
  <pre><code>String url = MainActivity.strHostUrl+"api/delete_picture"; 
  jobjDeleteImage = new JsonObjectRequest(Request.Method.POST, url, jobj, new Response.Listener&lt;JSONObject&gt;() {
  
      @Override
      public void onResponse(JSONObject response) {
          Log.e("Image response", response.toString());
  
  
      }
  },  new Response.ErrorListener() {
  
      @Override
      public void onErrorResponse(VolleyError error) {
  
          Log.e("Volly Error", error.toString());
  
          NetworkResponse networkResponse = error.networkResponse;
          if (networkResponse != null) {
              Log.e("Status code", String.valueOf(networkResponse.statusCode));
          }
      }
  });
  </code></pre>
  
  <p>I want to handle <code>com.android.volley.TimeoutError</code> and also some other error code like 404, 503 etc and <code>Toast</code> message here.</p>