title: Android Volley BasicNetwork.performRequest() unexpected response code 404
body: <p>I am getting this error while making a network request using volley library,I have followed these links <a href="https://stackoverflow.com/questions/26796965/android-volley-basicnetwork-performrequest-unexpected-response-code-400">Android Volley - BasicNetwork.performRequest: Unexpected response code 400</a> and <a href="https://stackoverflow.com/questions/31084883/unexpected-response-code-404-volley">Unexpected response code 404 volley</a> but none of them working in my case . Here is my request code </p>
  
  <pre><code> StringRequest stringRequest = new StringRequest(Request.Method.POST,AppConstants.LOG_IN_API , new Response.Listener&lt;String&gt;() {
              @Override
              public void onResponse(String response) {
                  Log.d("TAG", "Login Response: " + response.toString());
                  try {
                      JSONObject jsonObject = new JSONObject(response);
                     Log.v("USerid",""+jsonObject.getInt("userid"));
  
                  } catch (JSONException e) {
                      e.printStackTrace();
                  }
  
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError volleyError) {
                  System.out.println("volley Error ................."+volleyError);
              }
          }) {
              @Override
              protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
                 Log.v("getparams","Is called");
                  Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
                  params.put(AppConstants.USER_ID, "info@mindtears.com");
                  params.put(AppConstants.PASSWORD, "123456");
                  return params;
              }
  
  
              @Override
              public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
                  HashMap&lt;String, String&gt; headers = new HashMap&lt;String, String&gt;();
  
                  headers.put("Content-Type", "application/json; charset=utf-8");
                  return headers;
              }
  
          };
  
          Log.v("Request",""+stringRequest);
  
          AppController.getInstance().addToRequestQueue(stringRequest);
  
      }
  </code></pre>
  
  <p>Is there anyone who can tell me where I am doing wrong in my code? Any help is appreciable.</p>