To throw the HTTP status code 101 on a web page, the PHP function http_response_code can be used. The syntax is as follows: http_response_code(101)