mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-03 21:43:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			202 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			202 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
# sends a custom response instead of the usual 404
 | 
						|
 | 
						|
 | 
						|
def main(cli, vn, rem):
 | 
						|
    msg = f"sorry {cli.ip} but {cli.vpath} doesn't exist"
 | 
						|
 | 
						|
    return str(cli.reply(msg.encode("utf-8"), 404, "text/plain"))
 |