change error code to 403

This commit is contained in:
Bjoern Schiessle 2013-10-11 15:24:49 +02:00
parent 83c78bc7a8
commit 2d79a79202

View file

@ -34,7 +34,7 @@ if (!isset($_)) { //also provide standalone error page
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
\OCP\JSON::error(array('data' => array('message' => $errorMsg)));
} else {
header('HTTP/1.0 404 ' . $errorMsg);
header('HTTP/1.0 403 ' . $errorMsg);
$tmpl = new OC_Template('files_encryption', 'invalid_private_key', 'guest');
$tmpl->assign('message', $errorMsg);
$tmpl->assign('errorCode', $errorCode);