diff --git a/src/entities/RequestHandler.ts b/src/entities/RequestHandler.ts index b79573a..3b9ca3b 100644 --- a/src/entities/RequestHandler.ts +++ b/src/entities/RequestHandler.ts @@ -88,8 +88,10 @@ export class RequestHandler { */ public error(code : number, message : string) { this.response.status(code).send({ - code: code, - message: message + error: { + code: code, + message: message + } }); throw Error("Could not complete request!");