I am developing a REST api using PHP and Yii2. I have created a custom class for creating (POST) an entity. in that class I have the following code:
if (!$this->AuthenticateRegister($username, $token)) {
            throw new ForbiddenHttpException("Invalid token");
        }
When I try this locally (WAMP on windows) every thing works fine and I get the proper HTTP status code
 But when I upload the code on the host (cpanel) I always get 200 in response
But when I upload the code on the host (cpanel) I always get 200 in response
 since the HTTP status codes are needed on the client side, how can I resolve this issue?
since the HTTP status codes are needed on the client side, how can I resolve this issue?
