HTTPException
must be used when a fatal error such as authentication failure occurs.
new
HTTPException(status?: ContentfulStatusCode,options?: HTTPExceptionOptions,)
Creates an instance of HTTPException
.
readonly
status: ContentfulStatusCode
Returns the response object associated with the exception. If a response object is not provided, a new response is created with the error message and status code.