curl->statusCode
Returns HTTP status code.
Target
Signature
1curl->statusCode()Returns HTTP status code.
curl->statusCode is called with member syntax on a receiver value. curl->statusCode performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.
Examples
Basic call
1curl('https://example.com')->statusCodeThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.