Update hapi.d.ts

Add 'isBoom: boolean' in order to know whether the response has an error or not.
This commit is contained in:
Holly Leary
2015-08-28 13:48:21 -07:00
parent 67605e10f6
commit 9c6860963e
+1
View File
@@ -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.*/