import { IncomingMessage, RequestListener, Server, ServerResponse } from 'http';
-import StatusCodes from 'http-status-codes';
+import { StatusCodes } from 'http-status-codes';
import BaseError from '../../exception/BaseError';
import { ServerOptions } from '../../types/ConfigurationData';
public sendResponse(response: string): void {
const [uuid, payload] = JSON.parse(response) as ProtocolResponse;
- let statusCode: number;
+ let statusCode: StatusCodes;
switch (payload.status) {
case ResponseStatus.SUCCESS:
statusCode = StatusCodes.OK;