Creates a new SquidClientError
instance.
A custom error message.
The HTTP status code returned by the server (e.g., 400, 403, 422).
Optional
url: stringThe URL that was called when the error occurred.
Optional
headers: Record<string, string>The HTTP response headers.
Optional
body: BodyTypeThe parsed body of the error response.
Optional
Readonly
bodyThe parsed body of the error response.
Optional
Readonly
headersThe HTTP response headers.
Readonly
statusThe HTTP status code returned by the server (e.g., 400, 403, 422).
Optional
Readonly
urlThe URL that was called when the error occurred.
Represents an error thrown during an RPC (Remote Procedure Call) made by the Squid SDK.
This error contains detailed HTTP-level information such as the status code, response body, headers, and the request URL, allowing for better debugging and error handling in client code.