title: Getting error code 503 with Rest Assured Post method
body: <p>Not sure what the issue is but I am getting an error code 503 with rest assured. Here is the code.</p>
  
  <pre><code> RestAssured.baseURI = "https:XXXXXXXX";
   Response responseObj1;
   String body = "{\"requestId\":\"XXXXX\",\"clientId\":\"XXXX\",\"loyaltyAccountNumber\":\"XXXX\"}";
  responseObj1 = given().relaxedHTTPSValidation().header("Content-Type", "application/json").body(body).when()
              .post("XXXXX").then().extract().response();
  
  System.out.println(responseObj1.getStatusCode());
  </code></pre>
  
  <p>Also tried below command</p>
  
  <pre><code>responseObj1 = = given().relaxedHTTPSValidation().contentType("application/json")
              .contentType("application/json").
              body("{\"requestId\":\"Request1\",\"clientId\":\"LPE\",\"loyaltyAccountNumber\":\"1M92741392\"}").
              when().
              post("XXXXX");
  </code></pre>
  
  <p>but it is giving me the same error.</p>
  
  <p>Same API works fine in Postman. Any Suggestions, inputs ? Thanks.</p>