title: Change from http HTTP/1.1 200 to HTTP/1.1 202 in prestashop 1.6
body: <p>I am trying to deal whith the script, which has to return  HTTP/1.1  202 answer after getting query in xml, according to demands, but it returns 200 answer, is it possible to understand what`s the reason?</p>
  
  <pre><code>&lt;?php
  
  if ( isset( $_POST['xml'] ) ) {
  $respond = stripslashes( $_POST['xml'] );
  $xml = simplexml_load_string($respond ); 
  $cart = new Cart($xml-&gt;order_number);
  $currency = new Currency( intval( $cart-&gt;id_currency ) );
  if ($currency-&gt;iso_code != 'RUB')
      exit; 
  $sign_bank = Configuration::get('shopexample_av_sign');
  $shop_id = Configuration::get('shopexample_shop_id');
  $signature = strtoupper( md5( strtoupper( md5($sign_bank) . md5( $shop_id .    (string)$xml-&gt;order_number . (string)$xml-&gt;amount ) ) ) );
      if ( $signature == $xml-&gt;signature ) {
      $amount_paid = (int)$xml-&gt;amount / 100;
      $avangard-&gt;validateOrder( $cart-&gt;id, _PS_OS_PAYMENT_, $amount_paid,  $avangard-&gt;displayName, NULL, NULL );
      $order = new Order( $avangard-&gt;currentOrder );
      if ( $avangard-&gt;setStatus( $xml-&gt;ticket, $xml-&gt;status_desc ) )
          unlink( dirname(__FILE__).'/'.INPUT_FILENAME );
      header("HTTP/1.1 202 ACCEPTED");
    }
  }
  else {
  Tools::redirectLink(__PS_BASE_URI__.'order.php');
  }
  
  ?&gt;
  </code></pre>