Optionaloptions: { cause?: Error }ReadonlynameOptional ReadonlyrequestUnique request identifier for tracking (optional)
Optional ReadonlyresponseRaw response data from the API (optional)
ReadonlystatusHTTP status code from the response
Get a user-friendly error message based on the HTTP status code
This method provides human-readable error messages for common HTTP status codes, making it easier to display meaningful error information to users.
A user-friendly error message string
Check if this is a client error (4xx status codes)
Client errors indicate issues with the request such as invalid parameters, authentication failures, or requesting non-existent resources.
True if the status code is in the 4xx range
Check if this is a server error (5xx status codes)
Server errors indicate issues on the TenantOS server side and are typically temporary. These errors may be retryable depending on the specific status code.
True if the status code is in the 5xx range
Check if this error has a specific HTTP status code
The HTTP status code to check for
True if the error status matches the provided code
Thrown when authentication fails