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