index.js
function badRequestEndpoint(path, query, body) {
  return function () {
    body = body || getJSON(path);
    createEndpointFromObject(path, query, body).status(400);
    console.log('  registered error path %s', path);
  }
}
function badRequestEndpoint(path, query, body) {
  return function () {
    body = body || getJSON(path);
    createEndpointFromObject(path, query, body).status(400);
    console.log('  registered error path %s', path);
  }
}
function badRequestEndpoint ( path , query , body ) { return function ( ) { body = body || getJSON ( path ) ; createEndpointFromObject ( path , query , body ) . status ( 400 ) ; console . log ( '  registered error path %s' , path ) ; } }
Create a thunk that registers an endpoint that responds with BAD REQUEST status.
Create a thunk that registers an endpoint that responds with BAD REQUEST status .