@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
26 lines • 773 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
/** The base class for all HTTP error responses */
export class VercelError extends Error {
/** HTTP status code */
statusCode;
/** HTTP body */
body;
/** HTTP headers */
headers;
/** HTTP content type */
contentType;
/** Raw response */
rawResponse;
constructor(message, httpMeta) {
super(message);
this.statusCode = httpMeta.response.status;
this.body = httpMeta.body;
this.headers = httpMeta.response.headers;
this.contentType = httpMeta.response.headers.get("content-type") || "";
this.rawResponse = httpMeta.response;
this.name = "VercelError";
}
}
//# sourceMappingURL=vercelerror.js.map