{"size": 199, "ext": "js", "max_stars_repo_path": "src/error-handlers/500.js", "max_stars_repo_name": "Mahmoud-Khader/basic-api-server", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/error-handlers/500.js", "max_issues_repo_name": "Mahmoud-Khader/basic-api-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/error-handlers/500.js", "max_forks_repo_name": "Mahmoud-Khader/basic-api-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.5833333333, "max_line_length": 47, "alphanum_fraction": 0.527638191}
  
'use strict';


module.exports = (error,req,res,next)=>{
    res.status(500).send({
        error:500,
        route:req.path,
        massage:`Something went bad - ${error}`
    });
    next();
}