Creates the error with the store, the HTTP status and the request ID in its message.
The store that the request went to.
Optionalstatus: number
The HTTP status of the response, when it is a 5xx.
OptionalrequestId: string
The request ID of the response, when it has one.
OptionalcodeA stable code for JSON consumers to identify this error, included only when known.
OptionalcustomOptionaldetailsSelected JSON-serializable data to include in JSON errors. Never attach the raw error or request.
OptionalformattedOptionalnext
An Admin API request that failed on the Shopify side, such as an HTTP 5xx. It is an
AbortError, so the CLI does not report it as a bug.