server/response-handler.js
function invalidRequestError(response, error) {
  var content = errorContentExt(ErrorType.invalidRequest, error);
  send(response, content, StatusCode.badRequest);
}
function invalidRequestError(response, error) {
  var content = errorContentExt(ErrorType.invalidRequest, error);
  send(response, content, StatusCode.badRequest);
}
function invalidRequestError ( response , error ) { var content = errorContentExt ( ErrorType . invalidRequest , error ) ; send ( response , content , StatusCode . badRequest ) ; }
Send an invalid request error response

@param response  - response object
@param error     - error to send back to the client
Send an invalid request error response