Subversion Repositories Applications.wikini

Compare Revisions

Ignore whitespace Rev 36 → Rev 35

/trunk/api/rest/modules/0.5/Service.php
33,7 → 33,7
}
protected function envoyerErreur($e) {
RestServeur::envoyerEnteteStatutHttp($e->getCode());
header($e->getCode());
echo $e->getMessage();
}
41,5 → 41,9
header('HTTP/1.1 201 Created');
echo "OK";
}
 
protected function envoyerErreurServeur() {
header('HTTP/1.1 500 Internal Server Error');
}
}
?>