The get_http_code method returns the HTTP response code for the request.
get_http_code
get_http_code()
(number). The response code, for example 200 for success, or 404 for not found.
200
404