{"size": 270, "ext": "js", "max_stars_repo_path": "src/helpers/http-error.js", "max_stars_repo_name": "A-phenomenal1/Node-Folder_Structure", "max_stars_repo_stars_event_min_datetime": "2021-05-13T13:58:30.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-13T13:58:30.000Z", "max_issues_repo_path": "src/helpers/http-error.js", "max_issues_repo_name": "A-phenomenal1/Node-Folder_Structure", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/helpers/http-error.js", "max_forks_repo_name": "A-phenomenal1/Node-Folder_Structure", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.0, "max_line_length": 54, "alphanum_fraction": 0.6074074074}
function makeHttpError({ statusCode, errorMessage }) {
  return {
    headers: {
      "Content-Type": "application/json",
    },
    statusCode,
    data: JSON.stringify({
      success: false,
      error: errorMessage,
    }),
  };
}

module.exports = makeHttpError;
