Subversion Repositories Applications.wikini

Rev

Rev 35 | Rev 45 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 36
Line 31... Line 31...
31
		print $message_echec;
31
		print $message_echec;
32
		exit(0);
32
		exit(0);
33
	}
33
	}
Line 34... Line 34...
34
	
34
	
35
	protected function envoyerErreur($e) {
35
	protected function envoyerErreur($e) {
36
		header($e->getCode());
36
		RestServeur::envoyerEnteteStatutHttp($e->getCode());
37
		echo $e->getMessage();
37
		echo $e->getMessage();
Line 38... Line 38...
38
	}
38
	}
39
	
39
	
40
	protected function envoyerCreationEffectuee() {
40
	protected function envoyerCreationEffectuee() {
41
		header('HTTP/1.1 201 Created');
41
		header('HTTP/1.1 201 Created');
42
		echo "OK";
-
 
43
	}
-
 
44
 
-
 
45
	protected function envoyerErreurServeur() {
-
 
46
		header('HTTP/1.1 500 Internal Server Error');
42
		echo "OK";
47
	}
43
	}
48
}
44
}