title: Getting response code 200 in Postman but not on Android Network library
body: <p>I have a POST method API which is giving 200 response code in <strong>Postman</strong> but not when calling api by using <strong>Volley</strong> or even in <strong>Retrofit2</strong>.</p>
  
  <p>Here is Postman screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/xE5l4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xE5l4.jpg" alt="enter image description here"></a></p>
  
  <p>Here what i did for <strong>Volley</strong> library code:</p>
  
  <pre><code>final String url = "http://xxxxxxxx.com/api/mobile/user/post/";
  
      StringRequest stringReq = new StringRequest(Request.Method.POST, url,
              new com.android.volley.Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                      Log.e("onResponse ===", response + " " );
                  }
              },
              new com.android.volley.Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.e("onErrorResponse ===", error + " " );
                  }
              }) {
          @Override
          public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
              Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
              params.put("Authorization", "xxxxxxxxxxxxx");
              return params;
          }
  
          @Override
          public Map&lt;String, String&gt; getParams() {
              HashMap&lt;String, String&gt; params = new HashMap&lt;&gt;();
              params.put("post_body", "test");
              return params;
          }
      };
  
      // Adding request to request queue
      mApp.addToRequestQueue(stringReq);
      stringReq.setRetryPolicy(new DefaultRetryPolicy(
              REQUEST_TIME,
              DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
              DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
  </code></pre>
  
  <p>Error <strong>Logcat:</strong></p>
  
  <pre><code>BasicNetwork.performRequest: Unexpected response code 500 for http://xxxxxxxxxxx.com/api/mobile/user/post/
  </code></pre>