Throw 403 in a plugin [duplicate]

Is there any limitation/issue setting/thowing 403 the usual PHP way?

header('HTTP/1.0 403 Forbidden');
die('You are not allowed to access this file.');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)