Is there any way to get status code before output the html as for response? I need to get status code before desplay html page.example I dont need to display unauthorized html page instead I need to filter response code and re-authorized.I tried with response->getStatusCode().this works when there is success response but not for any other http status code,Handling this kind of situation was easy with prior versions.
Is there any way to get status code before output the html as for response? I need to get status code before desplay html page.example I dont need to display unauthorized html page instead I need to filter response code and re-authorized.I tried with response->getStatusCode().this works when there is success response but not for any other http status code,Handling this kind of situation was easy with prior versions.