From 9c6860963e667984597ffe12d111968f4a153caa Mon Sep 17 00:00:00 2001 From: Holly Leary Date: Fri, 28 Aug 2015 13:48:21 -0700 Subject: [PATCH] Update hapi.d.ts Add 'isBoom: boolean' in order to know whether the response has an error or not. --- hapi/hapi.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index 519a0ff27..3fc5dca03 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -1314,6 +1314,7 @@ declare module "hapi" { return reply.continue(); });*/ export class Response extends Events.EventEmitter { + isBoom: boolean; /** the HTTP response status code. Defaults to 200 (except for errors).*/ statusCode: number; /** an object containing the response headers where each key is a header field name. Note that this is an incomplete list of headers to be included with the response. Additional headers will be added once the response is prepare for transmission.*/