function errorHandler(error) {
      switch (error.code) {
        case "ENAMETOOLONG":
        case "ENOENT":
        case "ENOTDIR":
          sendError(404, {
            modifyResponseData: context.options.modifyResponseData,
          });
          break;
        default:
          sendError(500, {
            modifyResponseData: context.options.modifyResponseData,
          });
          break;
      }
    }
@param {NodeJS.ErrnoException} error error
@returns {void}