Add import.video.torrent configuration
[oweals/peertube.git] / server / middlewares / validators / follows.ts
index 991a2e1757f8a2b8098e5c572849036d95f8f177..040ee1f217370708cdc0771cbdd7469f9f791608 100644 (file)
@@ -14,9 +14,9 @@ const followValidator = [
   (req: express.Request, res: express.Response, next: express.NextFunction) => {
     // Force https if the administrator wants to make friends
     if (isTestInstance() === false && CONFIG.WEBSERVER.SCHEME === 'http') {
-      return res.status(400)
+      return res.status(500)
         .json({
-          error: 'Cannot follow non HTTPS web server.'
+          error: 'Cannot follow on a non HTTPS web server.'
         })
         .end()
     }